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 fc9157b420a8..4acef6e024a0 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 @@ -1925,6 +1925,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1alpha.Instance$PscAutoDnsState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1alpha.Instance$PscInstanceConfig", "queryAllDeclaredConstructors": true, @@ -1943,6 +1952,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1alpha.Instance$PscInstanceConfig$PscAutoConnectionPolicyState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.Instance$PscInstanceInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1alpha.Instance$PscInstanceInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1alpha.Instance$PscInterfaceConfig", "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 a3979ea7f7db..cf325d99a88d 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 @@ -1925,6 +1925,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1beta.Instance$PscAutoDnsState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1beta.Instance$PscInstanceConfig", "queryAllDeclaredConstructors": true, @@ -1943,6 +1952,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.alloydb.v1beta.Instance$PscInstanceConfig$PscAutoConnectionPolicyState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.Instance$PscInstanceInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.alloydb.v1beta.Instance$PscInstanceInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.alloydb.v1beta.Instance$PscInterfaceConfig", "queryAllDeclaredConstructors": true, 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 0694bbdf450c..6948894a5b32 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 @@ -1817,6 +1817,7 @@ public void getInstanceTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -1891,6 +1892,7 @@ public void getInstanceTest2() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -1967,6 +1969,7 @@ public void createInstanceTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2050,6 +2053,7 @@ public void createInstanceTest2() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2133,6 +2137,7 @@ public void createSecondaryInstanceTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2217,6 +2222,7 @@ public void createSecondaryInstanceTest2() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2360,6 +2366,7 @@ public void updateInstanceTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2402,6 +2409,7 @@ public void updateInstanceTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2464,6 +2472,7 @@ public void updateInstanceExceptionTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2599,6 +2608,7 @@ public void failoverInstanceTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2678,6 +2688,7 @@ public void failoverInstanceTest2() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2759,6 +2770,7 @@ public void injectFaultTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2840,6 +2852,7 @@ public void injectFaultTest2() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2923,6 +2936,7 @@ public void restartInstanceTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -3002,6 +3016,7 @@ public void restartInstanceTest2() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -3962,6 +3977,7 @@ public void getConnectionInfoTest() throws Exception { .addAllPemCertificateChain(new ArrayList()) .setInstanceUid("instanceUid-2102004869") .setPscDnsName("pscDnsName1984562292") + .setPscAutoDnsName("pscAutoDnsName1815362501") .build(); mockService.addResponse(expectedResponse); @@ -4011,6 +4027,7 @@ public void getConnectionInfoTest2() throws Exception { .addAllPemCertificateChain(new ArrayList()) .setInstanceUid("instanceUid-2102004869") .setPscDnsName("pscDnsName1984562292") + .setPscAutoDnsName("pscAutoDnsName1815362501") .build(); mockService.addResponse(expectedResponse); 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 74fb22d94ba8..a73237fe6162 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 @@ -1700,6 +1700,7 @@ public void getInstanceTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -1768,6 +1769,7 @@ public void getInstanceTest2() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -1836,6 +1838,7 @@ public void createInstanceTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -1918,6 +1921,7 @@ public void createInstanceTest2() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2000,6 +2004,7 @@ public void createSecondaryInstanceTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2084,6 +2089,7 @@ public void createSecondaryInstanceTest2() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2227,6 +2233,7 @@ public void updateInstanceTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2390,6 +2397,7 @@ public void failoverInstanceTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2466,6 +2474,7 @@ public void failoverInstanceTest2() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2542,6 +2551,7 @@ public void injectFaultTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2621,6 +2631,7 @@ public void injectFaultTest2() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2700,6 +2711,7 @@ public void restartInstanceTest() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2776,6 +2788,7 @@ public void restartInstanceTest2() throws Exception { .setSatisfiesPzi(true) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -3621,6 +3634,7 @@ public void getConnectionInfoTest() throws Exception { .addAllPemCertificateChain(new ArrayList()) .setInstanceUid("instanceUid-2102004869") .setPscDnsName("pscDnsName1984562292") + .setPscAutoDnsName("pscAutoDnsName1815362501") .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -3664,6 +3678,7 @@ public void getConnectionInfoTest2() throws Exception { .addAllPemCertificateChain(new ArrayList()) .setInstanceUid("instanceUid-2102004869") .setPscDnsName("pscDnsName1984562292") + .setPscAutoDnsName("pscAutoDnsName1815362501") .build(); mockAlloyDBAdmin.addResponse(expectedResponse); 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 b18c75ae88ca..2a6638fe4240 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 @@ -1802,6 +1802,7 @@ public void getInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -1875,6 +1876,7 @@ public void getInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -1950,6 +1952,7 @@ public void createInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2032,6 +2035,7 @@ public void createInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2114,6 +2118,7 @@ public void createSecondaryInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2197,6 +2202,7 @@ public void createSecondaryInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2339,6 +2345,7 @@ public void updateInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2380,6 +2387,7 @@ public void updateInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2441,6 +2449,7 @@ public void updateInstanceExceptionTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2575,6 +2584,7 @@ public void failoverInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2653,6 +2663,7 @@ public void failoverInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2733,6 +2744,7 @@ public void injectFaultTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2813,6 +2825,7 @@ public void injectFaultTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2895,6 +2908,7 @@ public void restartInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2973,6 +2987,7 @@ public void restartInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -3926,6 +3941,7 @@ public void getConnectionInfoTest() throws Exception { .addAllPemCertificateChain(new ArrayList()) .setInstanceUid("instanceUid-2102004869") .setPscDnsName("pscDnsName1984562292") + .setPscAutoDnsName("pscAutoDnsName1815362501") .build(); mockService.addResponse(expectedResponse); @@ -3975,6 +3991,7 @@ public void getConnectionInfoTest2() throws Exception { .addAllPemCertificateChain(new ArrayList()) .setInstanceUid("instanceUid-2102004869") .setPscDnsName("pscDnsName1984562292") + .setPscAutoDnsName("pscAutoDnsName1815362501") .build(); mockService.addResponse(expectedResponse); 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 06b7f7ce689c..66b3213bdb05 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 @@ -1687,6 +1687,7 @@ public void getInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -1754,6 +1755,7 @@ public void getInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -1821,6 +1823,7 @@ public void createInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -1902,6 +1905,7 @@ public void createInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -1983,6 +1987,7 @@ public void createSecondaryInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2066,6 +2071,7 @@ public void createSecondaryInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2208,6 +2214,7 @@ public void updateInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2370,6 +2377,7 @@ public void failoverInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2445,6 +2453,7 @@ public void failoverInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2520,6 +2529,7 @@ public void injectFaultTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2598,6 +2608,7 @@ public void injectFaultTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2676,6 +2687,7 @@ public void restartInstanceTest() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -2751,6 +2763,7 @@ public void restartInstanceTest2() throws Exception { .setClientConnectionConfig(Instance.ClientConnectionConfig.newBuilder().build()) .setSatisfiesPzs(true) .setPscInstanceConfig(Instance.PscInstanceConfig.newBuilder().build()) + .setPscInstanceInfo(Instance.PscInstanceInfo.newBuilder().build()) .setNetworkConfig(Instance.InstanceNetworkConfig.newBuilder().build()) .setGeminiConfig(GeminiInstanceConfig.newBuilder().build()) .addAllOutboundPublicIpAddresses(new ArrayList()) @@ -3591,6 +3604,7 @@ public void getConnectionInfoTest() throws Exception { .addAllPemCertificateChain(new ArrayList()) .setInstanceUid("instanceUid-2102004869") .setPscDnsName("pscDnsName1984562292") + .setPscAutoDnsName("pscAutoDnsName1815362501") .build(); mockAlloyDBAdmin.addResponse(expectedResponse); @@ -3634,6 +3648,7 @@ public void getConnectionInfoTest2() throws Exception { .addAllPemCertificateChain(new ArrayList()) .setInstanceUid("instanceUid-2102004869") .setPscDnsName("pscDnsName1984562292") + .setPscAutoDnsName("pscAutoDnsName1815362501") .build(); mockAlloyDBAdmin.addResponse(expectedResponse); 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 7f9f17b43a06..147eb9a3967b 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 @@ -59,6 +59,7 @@ private ConnectionInfo() { pemCertificateChain_ = com.google.protobuf.LazyStringArrayList.emptyList(); instanceUid_ = ""; pscDnsName_ = ""; + pscAutoDnsName_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -270,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=1388 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1453 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -291,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=1388 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1453 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -312,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=1388 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1453 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -334,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=1388 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1453 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ @@ -449,6 +450,61 @@ public com.google.protobuf.ByteString getPscDnsNameBytes() { } } + public static final int PSC_AUTO_DNS_NAME_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscAutoDnsName_ = ""; + + /** + * + * + *
+   * Output only. Specifies the DNS name to use with PSC service automation for
+   * the Instance.
+   * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscAutoDnsName. + */ + @java.lang.Override + public java.lang.String getPscAutoDnsName() { + java.lang.Object ref = pscAutoDnsName_; + 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(); + pscAutoDnsName_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Specifies the DNS name to use with PSC service automation for
+   * the Instance.
+   * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscAutoDnsName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscAutoDnsNameBytes() { + java.lang.Object ref = pscAutoDnsName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscAutoDnsName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -481,6 +537,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pscDnsName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, pscDnsName_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pscAutoDnsName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, pscAutoDnsName_); + } getUnknownFields().writeTo(output); } @@ -513,6 +572,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pscDnsName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, pscDnsName_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pscAutoDnsName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, pscAutoDnsName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -535,6 +597,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPemCertificateChainList().equals(other.getPemCertificateChainList())) return false; if (!getInstanceUid().equals(other.getInstanceUid())) return false; if (!getPscDnsName().equals(other.getPscDnsName())) return false; + if (!getPscAutoDnsName().equals(other.getPscAutoDnsName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -560,6 +623,8 @@ public int hashCode() { hash = (53 * hash) + getInstanceUid().hashCode(); hash = (37 * hash) + PSC_DNS_NAME_FIELD_NUMBER; hash = (53 * hash) + getPscDnsName().hashCode(); + hash = (37 * hash) + PSC_AUTO_DNS_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPscAutoDnsName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -707,6 +772,7 @@ public Builder clear() { pemCertificateChain_ = com.google.protobuf.LazyStringArrayList.emptyList(); instanceUid_ = ""; pscDnsName_ = ""; + pscAutoDnsName_ = ""; return this; } @@ -762,6 +828,9 @@ private void buildPartial0(com.google.cloud.alloydb.v1alpha.ConnectionInfo resul if (((from_bitField0_ & 0x00000020) != 0)) { result.pscDnsName_ = pscDnsName_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pscAutoDnsName_ = pscAutoDnsName_; + } } @java.lang.Override @@ -812,6 +881,11 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.ConnectionInfo other) bitField0_ |= 0x00000020; onChanged(); } + if (!other.getPscAutoDnsName().isEmpty()) { + pscAutoDnsName_ = other.pscAutoDnsName_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -875,6 +949,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 74: + { + pscAutoDnsName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1290,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=1388 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1453 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -1312,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=1388 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1453 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -1333,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=1388 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1453 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -1355,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=1388 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1453 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ @@ -1377,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=1388 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1453 * @param index The index to set the value at. * @param value The pemCertificateChain to set. * @return This builder for chaining. @@ -1407,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=1388 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1453 * @param value The pemCertificateChain to add. * @return This builder for chaining. */ @@ -1436,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=1388 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1453 * @param values The pemCertificateChain to add. * @return This builder for chaining. */ @@ -1462,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=1388 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1453 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1487,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=1388 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1453 * @param value The bytes of the pemCertificateChain to add. * @return This builder for chaining. */ @@ -1726,6 +1806,122 @@ public Builder setPscDnsNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object pscAutoDnsName_ = ""; + + /** + * + * + *
+     * Output only. Specifies the DNS name to use with PSC service automation for
+     * the Instance.
+     * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscAutoDnsName. + */ + public java.lang.String getPscAutoDnsName() { + java.lang.Object ref = pscAutoDnsName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscAutoDnsName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Specifies the DNS name to use with PSC service automation for
+     * the Instance.
+     * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscAutoDnsName. + */ + public com.google.protobuf.ByteString getPscAutoDnsNameBytes() { + java.lang.Object ref = pscAutoDnsName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscAutoDnsName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Specifies the DNS name to use with PSC service automation for
+     * the Instance.
+     * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The pscAutoDnsName to set. + * @return This builder for chaining. + */ + public Builder setPscAutoDnsName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscAutoDnsName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Specifies the DNS name to use with PSC service automation for
+     * the Instance.
+     * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPscAutoDnsName() { + pscAutoDnsName_ = getDefaultInstance().getPscAutoDnsName(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Specifies the DNS name to use with PSC service automation for
+     * the Instance.
+     * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for pscAutoDnsName to set. + * @return This builder for chaining. + */ + public Builder setPscAutoDnsNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscAutoDnsName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.ConnectionInfo) } 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 0cb961de0f97..f3186ea526aa 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=1388 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1453 * @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=1388 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1453 * @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=1388 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1453 * @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=1388 + * See google/cloud/alloydb/v1alpha/resources.proto;l=1453 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ @@ -249,4 +249,32 @@ public interface ConnectionInfoOrBuilder * @return The bytes for pscDnsName. */ com.google.protobuf.ByteString getPscDnsNameBytes(); + + /** + * + * + *
+   * Output only. Specifies the DNS name to use with PSC service automation for
+   * the Instance.
+   * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscAutoDnsName. + */ + java.lang.String getPscAutoDnsName(); + + /** + * + * + *
+   * Output only. Specifies the DNS name to use with PSC service automation for
+   * the Instance.
+   * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscAutoDnsName. + */ + com.google.protobuf.ByteString getPscAutoDnsNameBytes(); } 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 93432165a6fd..bf4815517448 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=1781 + * google/cloud/alloydb/v1alpha/resources.proto;l=1850 * @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=1781 + * google/cloud/alloydb/v1alpha/resources.proto;l=1850 * @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=1781 + * google/cloud/alloydb/v1alpha/resources.proto;l=1850 * @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=1781 + * google/cloud/alloydb/v1alpha/resources.proto;l=1850 * @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 3a4d4f7dc251..33405bc3bff3 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=1781 + * google/cloud/alloydb/v1alpha/resources.proto;l=1850 * @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 718d8155356b..a06045ba4436 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 @@ -796,6 +796,183 @@ private AvailabilityType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1alpha.Instance.AvailabilityType) } + /** + * + * + *
+   * The state of the PSC auto DNS.
+   * 
+ * + * Protobuf enum {@code google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState} + */ + public enum PscAutoDnsState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The state is unspecified. For old instances, this means the PSC auto DNS
+     * is disabled. For new instances, this means the PSC auto DNS is enabled
+     * by default. Use `effective_psc_auto_dns_enabled` to check the
+     * effective state of the PSC auto DNS.
+     * 
+ * + * PSC_AUTO_DNS_STATE_UNSPECIFIED = 0; + */ + PSC_AUTO_DNS_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Enables the PSC auto DNS for the instance.
+     * 
+ * + * PSC_AUTO_DNS_STATE_ENABLED = 1; + */ + PSC_AUTO_DNS_STATE_ENABLED(1), + /** + * + * + *
+     * Disables the PSC auto DNS for the instance.
+     * 
+ * + * PSC_AUTO_DNS_STATE_DISABLED = 2; + */ + PSC_AUTO_DNS_STATE_DISABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PscAutoDnsState"); + } + + /** + * + * + *
+     * The state is unspecified. For old instances, this means the PSC auto DNS
+     * is disabled. For new instances, this means the PSC auto DNS is enabled
+     * by default. Use `effective_psc_auto_dns_enabled` to check the
+     * effective state of the PSC auto DNS.
+     * 
+ * + * PSC_AUTO_DNS_STATE_UNSPECIFIED = 0; + */ + public static final int PSC_AUTO_DNS_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Enables the PSC auto DNS for the instance.
+     * 
+ * + * PSC_AUTO_DNS_STATE_ENABLED = 1; + */ + public static final int PSC_AUTO_DNS_STATE_ENABLED_VALUE = 1; + + /** + * + * + *
+     * Disables the PSC auto DNS for the instance.
+     * 
+ * + * PSC_AUTO_DNS_STATE_DISABLED = 2; + */ + public static final int PSC_AUTO_DNS_STATE_DISABLED_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 PscAutoDnsState 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 PscAutoDnsState forNumber(int value) { + switch (value) { + case 0: + return PSC_AUTO_DNS_STATE_UNSPECIFIED; + case 1: + return PSC_AUTO_DNS_STATE_ENABLED; + case 2: + return PSC_AUTO_DNS_STATE_DISABLED; + 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 PscAutoDnsState findValueByNumber(int number) { + return PscAutoDnsState.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.alloydb.v1alpha.Instance.getDescriptor().getEnumTypes().get(3); + } + + private static final PscAutoDnsState[] VALUES = values(); + + public static PscAutoDnsState 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 PscAutoDnsState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState) + } + /** * * @@ -942,7 +1119,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.alloydb.v1alpha.Instance.getDescriptor().getEnumTypes().get(3); + return com.google.cloud.alloydb.v1alpha.Instance.getDescriptor().getEnumTypes().get(4); } private static final ActivationPolicy[] VALUES = values(); @@ -10990,6 +11167,69 @@ com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig getPscAutoConn */ com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder getPscAutoConnectionsOrBuilder(int index); + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto DNS for the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoDnsState. + */ + int getPscAutoDnsStateValue(); + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto DNS for the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoDnsState. + */ + com.google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState getPscAutoDnsState(); + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto connection for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoConnectionPolicyState. + */ + int getPscAutoConnectionPolicyStateValue(); + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto connection for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoConnectionPolicyState. + */ + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + getPscAutoConnectionPolicyState(); } /** @@ -11029,6 +11269,8 @@ private PscInstanceConfig() { pscDnsName_ = ""; pscInterfaceConfigs_ = java.util.Collections.emptyList(); pscAutoConnections_ = java.util.Collections.emptyList(); + pscAutoDnsState_ = 0; + pscAutoConnectionPolicyState_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -11046,58 +11288,237 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.Builder.class); } - public static final int SERVICE_ATTACHMENT_LINK_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object serviceAttachmentLink_ = ""; - /** * * *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * The state of the PSC auto connection policy.
      * 
* - * - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The serviceAttachmentLink. + * Protobuf enum {@code + * google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyState} */ - @java.lang.Override - public java.lang.String getServiceAttachmentLink() { - java.lang.Object ref = serviceAttachmentLink_; - 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(); - serviceAttachmentLink_ = s; - return s; + public enum PscAutoConnectionPolicyState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * The state is unspecified. For old instances, this means the PSC auto
+       * connection is disabled. For new instances, this means the PSC auto
+       * connection is enabled by default.
+       * 
+ * + * PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED = 0; + */ + PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED(0), + /** + * + * + *
+       * Enables the PSC auto connection for the instance.
+       * 
+ * + * ENABLED = 1; + */ + ENABLED(1), + /** + * + * + *
+       * Disables the PSC auto connection for the instance.
+       * 
+ * + * DISABLED = 2; + */ + DISABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PscAutoConnectionPolicyState"); } - } - /** - * - * - *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
-     * 
- * - * - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for serviceAttachmentLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { + /** + * + * + *
+       * The state is unspecified. For old instances, this means the PSC auto
+       * connection is disabled. For new instances, this means the PSC auto
+       * connection is enabled by default.
+       * 
+ * + * PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED = 0; + */ + public static final int PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Enables the PSC auto connection for the instance.
+       * 
+ * + * ENABLED = 1; + */ + public static final int ENABLED_VALUE = 1; + + /** + * + * + *
+       * Disables the PSC auto connection for the instance.
+       * 
+ * + * DISABLED = 2; + */ + public static final int DISABLED_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 PscAutoConnectionPolicyState 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 PscAutoConnectionPolicyState forNumber(int value) { + switch (value) { + case 0: + return PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED; + case 1: + return ENABLED; + case 2: + return DISABLED; + 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 PscAutoConnectionPolicyState findValueByNumber(int number) { + return PscAutoConnectionPolicyState.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.alloydb.v1alpha.Instance.PscInstanceConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PscAutoConnectionPolicyState[] VALUES = values(); + + public static PscAutoConnectionPolicyState 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 PscAutoConnectionPolicyState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyState) + } + + public static final int SERVICE_ATTACHMENT_LINK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachmentLink_ = ""; + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAttachmentLink. + */ + @java.lang.Override + public java.lang.String getServiceAttachmentLink() { + java.lang.Object ref = serviceAttachmentLink_; + 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(); + serviceAttachmentLink_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAttachmentLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { java.lang.Object ref = serviceAttachmentLink_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = @@ -11441,6 +11862,98 @@ public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig getPscA return pscAutoConnections_.get(index); } + public static final int PSC_AUTO_DNS_STATE_FIELD_NUMBER = 11; + private int pscAutoDnsState_ = 0; + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto DNS for the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoDnsState. + */ + @java.lang.Override + public int getPscAutoDnsStateValue() { + return pscAutoDnsState_; + } + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto DNS for the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoDnsState. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState getPscAutoDnsState() { + com.google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState result = + com.google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState.forNumber(pscAutoDnsState_); + return result == null + ? com.google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState.UNRECOGNIZED + : result; + } + + public static final int PSC_AUTO_CONNECTION_POLICY_STATE_FIELD_NUMBER = 13; + private int pscAutoConnectionPolicyState_ = 0; + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto connection for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoConnectionPolicyState. + */ + @java.lang.Override + public int getPscAutoConnectionPolicyStateValue() { + return pscAutoConnectionPolicyState_; + } + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto connection for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoConnectionPolicyState. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + getPscAutoConnectionPolicyState() { + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + result = + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig + .PscAutoConnectionPolicyState.forNumber(pscAutoConnectionPolicyState_); + return result == null + ? com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + .UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -11471,6 +11984,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < pscAutoConnections_.size(); i++) { output.writeMessage(9, pscAutoConnections_.get(i)); } + if (pscAutoDnsState_ + != com.google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState + .PSC_AUTO_DNS_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(11, pscAutoDnsState_); + } + if (pscAutoConnectionPolicyState_ + != com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig + .PscAutoConnectionPolicyState.PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(13, pscAutoConnectionPolicyState_); + } getUnknownFields().writeTo(output); } @@ -11503,6 +12028,20 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, pscAutoConnections_.get(i)); } + if (pscAutoDnsState_ + != com.google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState + .PSC_AUTO_DNS_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, pscAutoDnsState_); + } + if (pscAutoConnectionPolicyState_ + != com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig + .PscAutoConnectionPolicyState.PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 13, pscAutoConnectionPolicyState_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -11525,6 +12064,8 @@ public boolean equals(final java.lang.Object obj) { if (!getPscDnsName().equals(other.getPscDnsName())) return false; if (!getPscInterfaceConfigsList().equals(other.getPscInterfaceConfigsList())) return false; if (!getPscAutoConnectionsList().equals(other.getPscAutoConnectionsList())) return false; + if (pscAutoDnsState_ != other.pscAutoDnsState_) return false; + if (pscAutoConnectionPolicyState_ != other.pscAutoConnectionPolicyState_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -11552,6 +12093,10 @@ public int hashCode() { hash = (37 * hash) + PSC_AUTO_CONNECTIONS_FIELD_NUMBER; hash = (53 * hash) + getPscAutoConnectionsList().hashCode(); } + hash = (37 * hash) + PSC_AUTO_DNS_STATE_FIELD_NUMBER; + hash = (53 * hash) + pscAutoDnsState_; + hash = (37 * hash) + PSC_AUTO_CONNECTION_POLICY_STATE_FIELD_NUMBER; + hash = (53 * hash) + pscAutoConnectionPolicyState_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -11711,6 +12256,8 @@ public Builder clear() { pscAutoConnectionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); + pscAutoDnsState_ = 0; + pscAutoConnectionPolicyState_ = 0; return this; } @@ -11782,6 +12329,12 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.pscDnsName_ = pscDnsName_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.pscAutoDnsState_ = pscAutoDnsState_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pscAutoConnectionPolicyState_ = pscAutoConnectionPolicyState_; + } } @java.lang.Override @@ -11872,6 +12425,12 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Instance.PscInstanceCo } } } + if (other.pscAutoDnsState_ != 0) { + setPscAutoDnsStateValue(other.getPscAutoDnsStateValue()); + } + if (other.pscAutoConnectionPolicyState_ != 0) { + setPscAutoConnectionPolicyStateValue(other.getPscAutoConnectionPolicyStateValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -11946,6 +12505,18 @@ public Builder mergeFrom( } break; } // case 74 + case 88: + { + pscAutoDnsState_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 88 + case 104: + { + pscAutoConnectionPolicyState_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -13115,24 +13686,1479 @@ public Builder addPscAutoConnections( * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscAutoConnections( + int index, + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder + builderForValue) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(index, builderForValue.build()); + onChanged(); + } else { + pscAutoConnectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllPscAutoConnections( + java.lang.Iterable< + ? extends com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig> + values) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscAutoConnections_); + onChanged(); + } else { + pscAutoConnectionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPscAutoConnections() { + if (pscAutoConnectionsBuilder_ == null) { + pscAutoConnections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + pscAutoConnectionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removePscAutoConnections(int index) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.remove(index); + onChanged(); + } else { + pscAutoConnectionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder + getPscAutoConnectionsBuilder(int index) { + return internalGetPscAutoConnectionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder + getPscAutoConnectionsOrBuilder(int index) { + if (pscAutoConnectionsBuilder_ == null) { + return pscAutoConnections_.get(index); + } else { + return pscAutoConnectionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder> + getPscAutoConnectionsOrBuilderList() { + if (pscAutoConnectionsBuilder_ != null) { + return pscAutoConnectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pscAutoConnections_); + } + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder + addPscAutoConnectionsBuilder() { + return internalGetPscAutoConnectionsFieldBuilder() + .addBuilder( + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig + .getDefaultInstance()); + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder + addPscAutoConnectionsBuilder(int index) { + return internalGetPscAutoConnectionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig + .getDefaultInstance()); + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder> + getPscAutoConnectionsBuilderList() { + return internalGetPscAutoConnectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig, + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder, + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder> + internalGetPscAutoConnectionsFieldBuilder() { + if (pscAutoConnectionsBuilder_ == null) { + pscAutoConnectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig, + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder, + com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder>( + pscAutoConnections_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + pscAutoConnections_ = null; + } + return pscAutoConnectionsBuilder_; + } + + private int pscAutoDnsState_ = 0; + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto DNS for the instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoDnsState. + */ + @java.lang.Override + public int getPscAutoDnsStateValue() { + return pscAutoDnsState_; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto DNS for the instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for pscAutoDnsState to set. + * @return This builder for chaining. + */ + public Builder setPscAutoDnsStateValue(int value) { + pscAutoDnsState_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto DNS for the instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoDnsState. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState getPscAutoDnsState() { + com.google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState result = + com.google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState.forNumber(pscAutoDnsState_); + return result == null + ? com.google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto DNS for the instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The pscAutoDnsState to set. + * @return This builder for chaining. + */ + public Builder setPscAutoDnsState( + com.google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + pscAutoDnsState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto DNS for the instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPscAutoDnsState() { + bitField0_ = (bitField0_ & ~0x00000020); + pscAutoDnsState_ = 0; + onChanged(); + return this; + } + + private int pscAutoConnectionPolicyState_ = 0; + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto connection for the
+       * instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoConnectionPolicyState. + */ + @java.lang.Override + public int getPscAutoConnectionPolicyStateValue() { + return pscAutoConnectionPolicyState_; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto connection for the
+       * instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for pscAutoConnectionPolicyState to set. + * @return This builder for chaining. + */ + public Builder setPscAutoConnectionPolicyStateValue(int value) { + pscAutoConnectionPolicyState_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto connection for the
+       * instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoConnectionPolicyState. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig + .PscAutoConnectionPolicyState + getPscAutoConnectionPolicyState() { + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + result = + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig + .PscAutoConnectionPolicyState.forNumber(pscAutoConnectionPolicyState_); + return result == null + ? com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig + .PscAutoConnectionPolicyState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto connection for the
+       * instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The pscAutoConnectionPolicyState to set. + * @return This builder for chaining. + */ + public Builder setPscAutoConnectionPolicyState( + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + pscAutoConnectionPolicyState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto connection for the
+       * instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPscAutoConnectionPolicyState() { + bitField0_ = (bitField0_ & ~0x00000040); + pscAutoConnectionPolicyState_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig) + private static final com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig(); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PscInstanceConfig 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.PscInstanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PscInstanceInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The effective state of the PSC auto DNS for the instance.
+     * 
+ * + * bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectivePscAutoDnsEnabled. + */ + boolean getEffectivePscAutoDnsEnabled(); + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the pscAutoDnsNames. + */ + java.util.List getPscAutoDnsNamesList(); + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of pscAutoDnsNames. + */ + int getPscAutoDnsNamesCount(); + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The pscAutoDnsNames at the given index. + */ + java.lang.String getPscAutoDnsNames(int index); + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pscAutoDnsNames at the given index. + */ + com.google.protobuf.ByteString getPscAutoDnsNamesBytes(int index); + + /** + * + * + *
+     * Output only. Indicates if the PSC auto connection policy is enabled for
+     * the instance. For older instances, this will be off by default, but for
+     * newer instances, this will be auto-enabled.
+     * 
+ * + * + * bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectivePscAutoConnectionPolicy. + */ + boolean getEffectivePscAutoConnectionPolicy(); + + /** + * + * + *
+     * Output only. The PSC service connection policy name. The format is
+     * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
+     * 
+ * + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceConnectionPolicy. + */ + java.lang.String getServiceConnectionPolicy(); + + /** + * + * + *
+     * Output only. The PSC service connection policy name. The format is
+     * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
+     * 
+ * + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for serviceConnectionPolicy. + */ + com.google.protobuf.ByteString getServiceConnectionPolicyBytes(); + } + + /** + * + * + *
+   * Information about the Private Service Connect (PSC) for the instance.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo} + */ + public static final class PscInstanceInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo) + PscInstanceInfoOrBuilder { + 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= */ "", + "PscInstanceInfo"); + } + + // Use PscInstanceInfo.newBuilder() to construct. + private PscInstanceInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PscInstanceInfo() { + pscAutoDnsNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceConnectionPolicy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceInfo_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_PscInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.class, + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.Builder.class); + } + + public static final int EFFECTIVE_PSC_AUTO_DNS_ENABLED_FIELD_NUMBER = 1; + private boolean effectivePscAutoDnsEnabled_ = false; + + /** + * + * + *
+     * Output only. The effective state of the PSC auto DNS for the instance.
+     * 
+ * + * bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectivePscAutoDnsEnabled. + */ + @java.lang.Override + public boolean getEffectivePscAutoDnsEnabled() { + return effectivePscAutoDnsEnabled_; + } + + public static final int PSC_AUTO_DNS_NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pscAutoDnsNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the pscAutoDnsNames. + */ + public com.google.protobuf.ProtocolStringList getPscAutoDnsNamesList() { + return pscAutoDnsNames_; + } + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of pscAutoDnsNames. + */ + public int getPscAutoDnsNamesCount() { + return pscAutoDnsNames_.size(); + } + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The pscAutoDnsNames at the given index. + */ + public java.lang.String getPscAutoDnsNames(int index) { + return pscAutoDnsNames_.get(index); + } + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pscAutoDnsNames at the given index. + */ + public com.google.protobuf.ByteString getPscAutoDnsNamesBytes(int index) { + return pscAutoDnsNames_.getByteString(index); + } + + public static final int EFFECTIVE_PSC_AUTO_CONNECTION_POLICY_FIELD_NUMBER = 3; + private boolean effectivePscAutoConnectionPolicy_ = false; + + /** + * + * + *
+     * Output only. Indicates if the PSC auto connection policy is enabled for
+     * the instance. For older instances, this will be off by default, but for
+     * newer instances, this will be auto-enabled.
+     * 
+ * + * + * bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectivePscAutoConnectionPolicy. + */ + @java.lang.Override + public boolean getEffectivePscAutoConnectionPolicy() { + return effectivePscAutoConnectionPolicy_; + } + + public static final int SERVICE_CONNECTION_POLICY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceConnectionPolicy_ = ""; + + /** + * + * + *
+     * Output only. The PSC service connection policy name. The format is
+     * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
+     * 
+ * + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceConnectionPolicy. + */ + @java.lang.Override + public java.lang.String getServiceConnectionPolicy() { + java.lang.Object ref = serviceConnectionPolicy_; + 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(); + serviceConnectionPolicy_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The PSC service connection policy name. The format is
+     * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
+     * 
+ * + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for serviceConnectionPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceConnectionPolicyBytes() { + java.lang.Object ref = serviceConnectionPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceConnectionPolicy_ = 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 (effectivePscAutoDnsEnabled_ != false) { + output.writeBool(1, effectivePscAutoDnsEnabled_); + } + for (int i = 0; i < pscAutoDnsNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, pscAutoDnsNames_.getRaw(i)); + } + if (effectivePscAutoConnectionPolicy_ != false) { + output.writeBool(3, effectivePscAutoConnectionPolicy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceConnectionPolicy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, serviceConnectionPolicy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (effectivePscAutoDnsEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, effectivePscAutoDnsEnabled_); + } + { + int dataSize = 0; + for (int i = 0; i < pscAutoDnsNames_.size(); i++) { + dataSize += computeStringSizeNoTag(pscAutoDnsNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getPscAutoDnsNamesList().size(); + } + if (effectivePscAutoConnectionPolicy_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, effectivePscAutoConnectionPolicy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceConnectionPolicy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, serviceConnectionPolicy_); + } + 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.PscInstanceInfo)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo other = + (com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo) obj; + + if (getEffectivePscAutoDnsEnabled() != other.getEffectivePscAutoDnsEnabled()) return false; + if (!getPscAutoDnsNamesList().equals(other.getPscAutoDnsNamesList())) return false; + if (getEffectivePscAutoConnectionPolicy() != other.getEffectivePscAutoConnectionPolicy()) + return false; + if (!getServiceConnectionPolicy().equals(other.getServiceConnectionPolicy())) 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) + EFFECTIVE_PSC_AUTO_DNS_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEffectivePscAutoDnsEnabled()); + if (getPscAutoDnsNamesCount() > 0) { + hash = (37 * hash) + PSC_AUTO_DNS_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getPscAutoDnsNamesList().hashCode(); + } + hash = (37 * hash) + EFFECTIVE_PSC_AUTO_CONNECTION_POLICY_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEffectivePscAutoConnectionPolicy()); + hash = (37 * hash) + SERVICE_CONNECTION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getServiceConnectionPolicy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo 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.PscInstanceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo 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.PscInstanceInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo 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.PscInstanceInfo 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.PscInstanceInfo 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.PscInstanceInfo 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.PscInstanceInfo 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.PscInstanceInfo 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.PscInstanceInfo 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.PscInstanceInfo 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 the Private Service Connect (PSC) for the instance.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo) + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1alpha.ResourcesProto + .internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceInfo_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_PscInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.class, + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + effectivePscAutoDnsEnabled_ = false; + pscAutoDnsNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + effectivePscAutoConnectionPolicy_ = false; + serviceConnectionPolicy_ = ""; + 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_PscInstanceInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo build() { + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo buildPartial() { + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo result = + new com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.effectivePscAutoDnsEnabled_ = effectivePscAutoDnsEnabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + pscAutoDnsNames_.makeImmutable(); + result.pscAutoDnsNames_ = pscAutoDnsNames_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.effectivePscAutoConnectionPolicy_ = effectivePscAutoConnectionPolicy_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceConnectionPolicy_ = serviceConnectionPolicy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo) { + return mergeFrom((com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo other) { + if (other == com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.getDefaultInstance()) + return this; + if (other.getEffectivePscAutoDnsEnabled() != false) { + setEffectivePscAutoDnsEnabled(other.getEffectivePscAutoDnsEnabled()); + } + if (!other.pscAutoDnsNames_.isEmpty()) { + if (pscAutoDnsNames_.isEmpty()) { + pscAutoDnsNames_ = other.pscAutoDnsNames_; + bitField0_ |= 0x00000002; + } else { + ensurePscAutoDnsNamesIsMutable(); + pscAutoDnsNames_.addAll(other.pscAutoDnsNames_); + } + onChanged(); + } + if (other.getEffectivePscAutoConnectionPolicy() != false) { + setEffectivePscAutoConnectionPolicy(other.getEffectivePscAutoConnectionPolicy()); + } + if (!other.getServiceConnectionPolicy().isEmpty()) { + serviceConnectionPolicy_ = other.serviceConnectionPolicy_; + 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 8: + { + effectivePscAutoDnsEnabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePscAutoDnsNamesIsMutable(); + pscAutoDnsNames_.add(s); + break; + } // case 18 + case 24: + { + effectivePscAutoConnectionPolicy_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + serviceConnectionPolicy_ = 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 boolean effectivePscAutoDnsEnabled_; + + /** + * + * + *
+       * Output only. The effective state of the PSC auto DNS for the instance.
+       * 
+ * + * bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectivePscAutoDnsEnabled. + */ + @java.lang.Override + public boolean getEffectivePscAutoDnsEnabled() { + return effectivePscAutoDnsEnabled_; + } + + /** + * + * + *
+       * Output only. The effective state of the PSC auto DNS for the instance.
+       * 
+ * + * bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The effectivePscAutoDnsEnabled to set. + * @return This builder for chaining. + */ + public Builder setEffectivePscAutoDnsEnabled(boolean value) { + + effectivePscAutoDnsEnabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The effective state of the PSC auto DNS for the instance.
+       * 
+ * + * bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEffectivePscAutoDnsEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + effectivePscAutoDnsEnabled_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList pscAutoDnsNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePscAutoDnsNamesIsMutable() { + if (!pscAutoDnsNames_.isModifiable()) { + pscAutoDnsNames_ = new com.google.protobuf.LazyStringArrayList(pscAutoDnsNames_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the pscAutoDnsNames. + */ + public com.google.protobuf.ProtocolStringList getPscAutoDnsNamesList() { + pscAutoDnsNames_.makeImmutable(); + return pscAutoDnsNames_; + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of pscAutoDnsNames. + */ + public int getPscAutoDnsNamesCount() { + return pscAutoDnsNames_.size(); + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The pscAutoDnsNames at the given index. + */ + public java.lang.String getPscAutoDnsNames(int index) { + return pscAutoDnsNames_.get(index); + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pscAutoDnsNames at the given index. + */ + public com.google.protobuf.ByteString getPscAutoDnsNamesBytes(int index) { + return pscAutoDnsNames_.getByteString(index); + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The pscAutoDnsNames to set. + * @return This builder for chaining. + */ + public Builder setPscAutoDnsNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscAutoDnsNamesIsMutable(); + pscAutoDnsNames_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The pscAutoDnsNames to add. + * @return This builder for chaining. + */ + public Builder addPscAutoDnsNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscAutoDnsNamesIsMutable(); + pscAutoDnsNames_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The pscAutoDnsNames to add. + * @return This builder for chaining. + */ + public Builder addAllPscAutoDnsNames(java.lang.Iterable values) { + ensurePscAutoDnsNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscAutoDnsNames_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
        * 
* - * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public Builder addPscAutoConnections( - int index, - com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder - builderForValue) { - if (pscAutoConnectionsBuilder_ == null) { - ensurePscAutoConnectionsIsMutable(); - pscAutoConnections_.add(index, builderForValue.build()); - onChanged(); - } else { - pscAutoConnectionsBuilder_.addMessage(index, builderForValue.build()); - } + public Builder clearPscAutoDnsNames() { + pscAutoDnsNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); return this; } @@ -13140,68 +15166,70 @@ public Builder addPscAutoConnections( * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. Specifies the auto DNS names for the instance.
        * 
* - * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The bytes of the pscAutoDnsNames to add. + * @return This builder for chaining. */ - public Builder addAllPscAutoConnections( - java.lang.Iterable< - ? extends com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig> - values) { - if (pscAutoConnectionsBuilder_ == null) { - ensurePscAutoConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscAutoConnections_); - onChanged(); - } else { - pscAutoConnectionsBuilder_.addAllMessages(values); + public Builder addPscAutoDnsNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePscAutoDnsNamesIsMutable(); + pscAutoDnsNames_.add(value); + bitField0_ |= 0x00000002; + onChanged(); return this; } + private boolean effectivePscAutoConnectionPolicy_; + /** * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. Indicates if the PSC auto connection policy is enabled for
+       * the instance. For older instances, this will be off by default, but for
+       * newer instances, this will be auto-enabled.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The effectivePscAutoConnectionPolicy. */ - public Builder clearPscAutoConnections() { - if (pscAutoConnectionsBuilder_ == null) { - pscAutoConnections_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - pscAutoConnectionsBuilder_.clear(); - } - return this; + @java.lang.Override + public boolean getEffectivePscAutoConnectionPolicy() { + return effectivePscAutoConnectionPolicy_; } /** * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. Indicates if the PSC auto connection policy is enabled for
+       * the instance. For older instances, this will be off by default, but for
+       * newer instances, this will be auto-enabled.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The effectivePscAutoConnectionPolicy to set. + * @return This builder for chaining. */ - public Builder removePscAutoConnections(int index) { - if (pscAutoConnectionsBuilder_ == null) { - ensurePscAutoConnectionsIsMutable(); - pscAutoConnections_.remove(index); - onChanged(); - } else { - pscAutoConnectionsBuilder_.remove(index); - } + public Builder setEffectivePscAutoConnectionPolicy(boolean value) { + + effectivePscAutoConnectionPolicy_ = value; + bitField0_ |= 0x00000004; + onChanged(); return this; } @@ -13209,35 +15237,48 @@ public Builder removePscAutoConnections(int index) { * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. Indicates if the PSC auto connection policy is enabled for
+       * the instance. For older instances, this will be off by default, but for
+       * newer instances, this will be auto-enabled.
        * 
* * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder - getPscAutoConnectionsBuilder(int index) { - return internalGetPscAutoConnectionsFieldBuilder().getBuilder(index); + public Builder clearEffectivePscAutoConnectionPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + effectivePscAutoConnectionPolicy_ = false; + onChanged(); + return this; } + private java.lang.Object serviceConnectionPolicy_ = ""; + /** * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. The PSC service connection policy name. The format is
+       * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
        * 
* - * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The serviceConnectionPolicy. */ - public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder - getPscAutoConnectionsOrBuilder(int index) { - if (pscAutoConnectionsBuilder_ == null) { - return pscAutoConnections_.get(index); + public java.lang.String getServiceConnectionPolicy() { + java.lang.Object ref = serviceConnectionPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceConnectionPolicy_ = s; + return s; } else { - return pscAutoConnectionsBuilder_.getMessageOrBuilder(index); + return (java.lang.String) ref; } } @@ -13245,20 +15286,24 @@ public Builder removePscAutoConnections(int index) { * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. The PSC service connection policy name. The format is
+       * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
        * 
* - * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The bytes for serviceConnectionPolicy. */ - public java.util.List< - ? extends com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder> - getPscAutoConnectionsOrBuilderList() { - if (pscAutoConnectionsBuilder_ != null) { - return pscAutoConnectionsBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.ByteString getServiceConnectionPolicyBytes() { + java.lang.Object ref = serviceConnectionPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceConnectionPolicy_ = b; + return b; } else { - return java.util.Collections.unmodifiableList(pscAutoConnections_); + return (com.google.protobuf.ByteString) ref; } } @@ -13266,97 +15311,89 @@ public Builder removePscAutoConnections(int index) { * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. The PSC service connection policy name. The format is
+       * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
        * 
* - * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The serviceConnectionPolicy to set. + * @return This builder for chaining. */ - public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder - addPscAutoConnectionsBuilder() { - return internalGetPscAutoConnectionsFieldBuilder() - .addBuilder( - com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig - .getDefaultInstance()); + public Builder setServiceConnectionPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceConnectionPolicy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; } /** * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. The PSC service connection policy name. The format is
+       * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
        * 
* - * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder - addPscAutoConnectionsBuilder(int index) { - return internalGetPscAutoConnectionsFieldBuilder() - .addBuilder( - index, - com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig - .getDefaultInstance()); + public Builder clearServiceConnectionPolicy() { + serviceConnectionPolicy_ = getDefaultInstance().getServiceConnectionPolicy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; } /** * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. The PSC service connection policy name. The format is
+       * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
        * 
* - * - * repeated .google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The bytes for serviceConnectionPolicy to set. + * @return This builder for chaining. */ - public java.util.List< - com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder> - getPscAutoConnectionsBuilderList() { - return internalGetPscAutoConnectionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig, - com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder, - com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder> - internalGetPscAutoConnectionsFieldBuilder() { - if (pscAutoConnectionsBuilder_ == null) { - pscAutoConnectionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig, - com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfig.Builder, - com.google.cloud.alloydb.v1alpha.Instance.PscAutoConnectionConfigOrBuilder>( - pscAutoConnections_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - pscAutoConnections_ = null; + public Builder setServiceConnectionPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return pscAutoConnectionsBuilder_; + checkByteStringIsUtf8(value); + serviceConnectionPolicy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig) + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo) } - // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig) - private static final com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig - DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo) + private static final com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig(); + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo(); } - public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig getDefaultInstance() { + public static com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo 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 PscInstanceConfig parsePartialFrom( + public PscInstanceInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -13376,17 +15413,17 @@ public PscInstanceConfig 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.PscInstanceConfig getDefaultInstanceForType() { + public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -18697,6 +20734,69 @@ public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig getPscInstanc : pscInstanceConfig_; } + public static final int PSC_INSTANCE_INFO_FIELD_NUMBER = 46; + private com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo pscInstanceInfo_; + + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pscInstanceInfo field is set. + */ + @java.lang.Override + public boolean hasPscInstanceInfo() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscInstanceInfo. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo getPscInstanceInfo() { + return pscInstanceInfo_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.getDefaultInstance() + : pscInstanceInfo_; + } + + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfoOrBuilder + getPscInstanceInfoOrBuilder() { + return pscInstanceInfo_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.getDefaultInstance() + : pscInstanceInfo_; + } + public static final int NETWORK_CONFIG_FIELD_NUMBER = 29; private com.google.cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig networkConfig_; @@ -18715,7 +20815,7 @@ public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfig getPscInstanc */ @java.lang.Override public boolean hasNetworkConfig() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -18773,13 +20873,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=1331 + * google/cloud/alloydb/v1alpha/resources.proto;l=1396 * @return Whether the geminiConfig field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasGeminiConfig() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -18795,7 +20895,7 @@ public boolean hasGeminiConfig() { *
* * @deprecated google.cloud.alloydb.v1alpha.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=1331 + * google/cloud/alloydb/v1alpha/resources.proto;l=1396 * @return The geminiConfig. */ @java.lang.Override @@ -18975,7 +21075,7 @@ public com.google.cloud.alloydb.v1alpha.Instance.ActivationPolicy getActivationP */ @java.lang.Override public boolean hasConnectionPoolConfig() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -19035,7 +21135,7 @@ public com.google.cloud.alloydb.v1alpha.Instance.ConnectionPoolConfig getConnect */ @java.lang.Override public boolean hasGcaConfig() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -19172,13 +21272,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(28, getPscInstanceConfig()); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeMessage(29, getNetworkConfig()); } if (satisfiesPzi_ != false) { output.writeBool(30, satisfiesPzi_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { output.writeMessage(33, getGeminiConfig()); } for (int i = 0; i < outboundPublicIpAddresses_.size(); i++) { @@ -19190,12 +21290,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(35, activationPolicy_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { output.writeMessage(37, getConnectionPoolConfig()); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { output.writeMessage(38, getGcaConfig()); } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(46, getPscInstanceInfo()); + } getUnknownFields().writeTo(output); } @@ -19314,13 +21417,13 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getPscInstanceConfig()); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getNetworkConfig()); } if (satisfiesPzi_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, satisfiesPzi_); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, getGeminiConfig()); } { @@ -19336,13 +21439,16 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, activationPolicy_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getConnectionPoolConfig()); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getGcaConfig()); } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(46, getPscInstanceInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -19420,6 +21526,10 @@ public boolean equals(final java.lang.Object obj) { if (hasPscInstanceConfig()) { if (!getPscInstanceConfig().equals(other.getPscInstanceConfig())) return false; } + if (hasPscInstanceInfo() != other.hasPscInstanceInfo()) return false; + if (hasPscInstanceInfo()) { + if (!getPscInstanceInfo().equals(other.getPscInstanceInfo())) return false; + } if (hasNetworkConfig() != other.hasNetworkConfig()) return false; if (hasNetworkConfig()) { if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; @@ -19536,6 +21646,10 @@ public int hashCode() { hash = (37 * hash) + PSC_INSTANCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPscInstanceConfig().hashCode(); } + if (hasPscInstanceInfo()) { + hash = (37 * hash) + PSC_INSTANCE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getPscInstanceInfo().hashCode(); + } if (hasNetworkConfig()) { hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getNetworkConfig().hashCode(); @@ -19742,6 +21856,7 @@ private void maybeForceBuilderInitialization() { internalGetUpdatePolicyFieldBuilder(); internalGetClientConnectionConfigFieldBuilder(); internalGetPscInstanceConfigFieldBuilder(); + internalGetPscInstanceInfoFieldBuilder(); internalGetNetworkConfigFieldBuilder(); internalGetGeminiConfigFieldBuilder(); internalGetConnectionPoolConfigFieldBuilder(); @@ -19832,6 +21947,11 @@ public Builder clear() { pscInstanceConfigBuilder_.dispose(); pscInstanceConfigBuilder_ = null; } + pscInstanceInfo_ = null; + if (pscInstanceInfoBuilder_ != null) { + pscInstanceInfoBuilder_.dispose(); + pscInstanceInfoBuilder_ = null; + } networkConfig_ = null; if (networkConfigBuilder_ != null) { networkConfigBuilder_.dispose(); @@ -20019,38 +22139,43 @@ private void buildPartial0(com.google.cloud.alloydb.v1alpha.Instance result) { to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x10000000) != 0)) { - result.networkConfig_ = - networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); + result.pscInstanceInfo_ = + pscInstanceInfoBuilder_ == null ? pscInstanceInfo_ : pscInstanceInfoBuilder_.build(); to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x20000000) != 0)) { - result.geminiConfig_ = - geminiConfigBuilder_ == null ? geminiConfig_ : geminiConfigBuilder_.build(); + result.networkConfig_ = + networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x40000000) != 0)) { - outboundPublicIpAddresses_.makeImmutable(); - result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_; + result.geminiConfig_ = + geminiConfigBuilder_ == null ? geminiConfig_ : geminiConfigBuilder_.build(); + to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x80000000) != 0)) { - result.activationPolicy_ = activationPolicy_; + outboundPublicIpAddresses_.makeImmutable(); + result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_; } 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_; + } + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000002) != 0)) { result.connectionPoolConfig_ = connectionPoolConfigBuilder_ == null ? connectionPoolConfig_ : connectionPoolConfigBuilder_.build(); - to_bitField0_ |= 0x00002000; + to_bitField0_ |= 0x00004000; } - if (((from_bitField1_ & 0x00000002) != 0)) { + if (((from_bitField1_ & 0x00000004) != 0)) { result.gcaConfig_ = gcaConfigBuilder_ == null ? gcaConfig_ : gcaConfigBuilder_.build(); - to_bitField0_ |= 0x00004000; + to_bitField0_ |= 0x00008000; } result.bitField0_ |= to_bitField0_; } @@ -20186,6 +22311,9 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Instance other) { if (other.hasPscInstanceConfig()) { mergePscInstanceConfig(other.getPscInstanceConfig()); } + if (other.hasPscInstanceInfo()) { + mergePscInstanceInfo(other.getPscInstanceInfo()); + } if (other.hasNetworkConfig()) { mergeNetworkConfig(other.getNetworkConfig()); } @@ -20195,7 +22323,7 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1alpha.Instance other) { if (!other.outboundPublicIpAddresses_.isEmpty()) { if (outboundPublicIpAddresses_.isEmpty()) { outboundPublicIpAddresses_ = other.outboundPublicIpAddresses_; - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; } else { ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.addAll(other.outboundPublicIpAddresses_); @@ -20440,7 +22568,7 @@ public Builder mergeFrom( { input.readMessage( internalGetNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; break; } // case 234 case 240: @@ -20453,7 +22581,7 @@ public Builder mergeFrom( { input.readMessage( internalGetGeminiConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; break; } // case 266 case 274: @@ -20466,23 +22594,30 @@ public Builder mergeFrom( case 280: { activationPolicy_ = input.readEnum(); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; break; } // case 280 case 298: { input.readMessage( internalGetConnectionPoolConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; break; } // case 298 case 306: { input.readMessage( internalGetGcaConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000004; break; } // case 306 + case 370: + { + input.readMessage( + internalGetPscInstanceInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 370 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -25349,6 +27484,233 @@ public Builder clearPscInstanceConfig() { return pscInstanceConfigBuilder_; } + private com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo pscInstanceInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo, + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.Builder, + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfoOrBuilder> + pscInstanceInfoBuilder_; + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pscInstanceInfo field is set. + */ + public boolean hasPscInstanceInfo() { + return ((bitField0_ & 0x10000000) != 0); + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscInstanceInfo. + */ + public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo getPscInstanceInfo() { + if (pscInstanceInfoBuilder_ == null) { + return pscInstanceInfo_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.getDefaultInstance() + : pscInstanceInfo_; + } else { + return pscInstanceInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPscInstanceInfo( + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo value) { + if (pscInstanceInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pscInstanceInfo_ = value; + } else { + pscInstanceInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPscInstanceInfo( + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.Builder builderForValue) { + if (pscInstanceInfoBuilder_ == null) { + pscInstanceInfo_ = builderForValue.build(); + } else { + pscInstanceInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePscInstanceInfo( + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo value) { + if (pscInstanceInfoBuilder_ == null) { + if (((bitField0_ & 0x10000000) != 0) + && pscInstanceInfo_ != null + && pscInstanceInfo_ + != com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.getDefaultInstance()) { + getPscInstanceInfoBuilder().mergeFrom(value); + } else { + pscInstanceInfo_ = value; + } + } else { + pscInstanceInfoBuilder_.mergeFrom(value); + } + if (pscInstanceInfo_ != null) { + bitField0_ |= 0x10000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPscInstanceInfo() { + bitField0_ = (bitField0_ & ~0x10000000); + pscInstanceInfo_ = null; + if (pscInstanceInfoBuilder_ != null) { + pscInstanceInfoBuilder_.dispose(); + pscInstanceInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.Builder + getPscInstanceInfoBuilder() { + bitField0_ |= 0x10000000; + onChanged(); + return internalGetPscInstanceInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfoOrBuilder + getPscInstanceInfoOrBuilder() { + if (pscInstanceInfoBuilder_ != null) { + return pscInstanceInfoBuilder_.getMessageOrBuilder(); + } else { + return pscInstanceInfo_ == null + ? com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.getDefaultInstance() + : pscInstanceInfo_; + } + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo, + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.Builder, + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfoOrBuilder> + internalGetPscInstanceInfoFieldBuilder() { + if (pscInstanceInfoBuilder_ == null) { + pscInstanceInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo, + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo.Builder, + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfoOrBuilder>( + getPscInstanceInfo(), getParentForChildren(), isClean()); + pscInstanceInfo_ = null; + } + return pscInstanceInfoBuilder_; + } + private com.google.cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig networkConfig_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig, @@ -25370,7 +27732,7 @@ public Builder clearPscInstanceConfig() { * @return Whether the networkConfig field is set. */ public boolean hasNetworkConfig() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x20000000) != 0); } /** @@ -25417,7 +27779,7 @@ public Builder setNetworkConfig( } else { networkConfigBuilder_.setMessage(value); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -25440,7 +27802,7 @@ public Builder setNetworkConfig( } else { networkConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -25459,7 +27821,7 @@ public Builder setNetworkConfig( public Builder mergeNetworkConfig( com.google.cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig value) { if (networkConfigBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) + if (((bitField0_ & 0x20000000) != 0) && networkConfig_ != null && networkConfig_ != com.google.cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig @@ -25472,7 +27834,7 @@ public Builder mergeNetworkConfig( networkConfigBuilder_.mergeFrom(value); } if (networkConfig_ != null) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); } return this; @@ -25490,7 +27852,7 @@ public Builder mergeNetworkConfig( *
*/ public Builder clearNetworkConfig() { - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x20000000); networkConfig_ = null; if (networkConfigBuilder_ != null) { networkConfigBuilder_.dispose(); @@ -25513,7 +27875,7 @@ public Builder clearNetworkConfig() { */ public com.google.cloud.alloydb.v1alpha.Instance.InstanceNetworkConfig.Builder getNetworkConfigBuilder() { - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return internalGetNetworkConfigFieldBuilder().getBuilder(); } @@ -25588,12 +27950,12 @@ public Builder clearNetworkConfig() { *
* * @deprecated google.cloud.alloydb.v1alpha.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=1331 + * google/cloud/alloydb/v1alpha/resources.proto;l=1396 * @return Whether the geminiConfig field is set. */ @java.lang.Deprecated public boolean hasGeminiConfig() { - return ((bitField0_ & 0x20000000) != 0); + return ((bitField0_ & 0x40000000) != 0); } /** @@ -25609,7 +27971,7 @@ public boolean hasGeminiConfig() { *
* * @deprecated google.cloud.alloydb.v1alpha.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=1331 + * google/cloud/alloydb/v1alpha/resources.proto;l=1396 * @return The geminiConfig. */ @java.lang.Deprecated @@ -25645,7 +28007,7 @@ public Builder setGeminiConfig(com.google.cloud.alloydb.v1alpha.GeminiInstanceCo } else { geminiConfigBuilder_.setMessage(value); } - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -25670,7 +28032,7 @@ public Builder setGeminiConfig( } else { geminiConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -25690,7 +28052,7 @@ public Builder setGeminiConfig( @java.lang.Deprecated public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1alpha.GeminiInstanceConfig value) { if (geminiConfigBuilder_ == null) { - if (((bitField0_ & 0x20000000) != 0) + if (((bitField0_ & 0x40000000) != 0) && geminiConfig_ != null && geminiConfig_ != com.google.cloud.alloydb.v1alpha.GeminiInstanceConfig.getDefaultInstance()) { @@ -25702,7 +28064,7 @@ public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1alpha.GeminiInstance geminiConfigBuilder_.mergeFrom(value); } if (geminiConfig_ != null) { - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); } return this; @@ -25722,7 +28084,7 @@ public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1alpha.GeminiInstance */ @java.lang.Deprecated public Builder clearGeminiConfig() { - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x40000000); geminiConfig_ = null; if (geminiConfigBuilder_ != null) { geminiConfigBuilder_.dispose(); @@ -25746,7 +28108,7 @@ public Builder clearGeminiConfig() { */ @java.lang.Deprecated public com.google.cloud.alloydb.v1alpha.GeminiInstanceConfig.Builder getGeminiConfigBuilder() { - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); return internalGetGeminiConfigFieldBuilder().getBuilder(); } @@ -25812,7 +28174,7 @@ private void ensureOutboundPublicIpAddressesIsMutable() { outboundPublicIpAddresses_ = new com.google.protobuf.LazyStringArrayList(outboundPublicIpAddresses_); } - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; } /** @@ -25907,7 +28269,7 @@ public Builder setOutboundPublicIpAddresses(int index, java.lang.String value) { } ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.set(index, value); - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -25932,7 +28294,7 @@ public Builder addOutboundPublicIpAddresses(java.lang.String value) { } ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.add(value); - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -25954,7 +28316,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; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -25974,7 +28336,7 @@ public Builder addAllOutboundPublicIpAddresses(java.lang.Iterable */ public Builder clearConnectionPoolConfig() { - bitField1_ = (bitField1_ & ~0x00000001); + bitField1_ = (bitField1_ & ~0x00000002); connectionPoolConfig_ = null; if (connectionPoolConfigBuilder_ != null) { connectionPoolConfigBuilder_.dispose(); @@ -26309,7 +28671,7 @@ public Builder clearConnectionPoolConfig() { */ public com.google.cloud.alloydb.v1alpha.Instance.ConnectionPoolConfig.Builder getConnectionPoolConfigBuilder() { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; onChanged(); return internalGetConnectionPoolConfigFieldBuilder().getBuilder(); } @@ -26385,7 +28747,7 @@ public Builder clearConnectionPoolConfig() { * @return Whether the gcaConfig field is set. */ public boolean hasGcaConfig() { - return ((bitField1_ & 0x00000002) != 0); + return ((bitField1_ & 0x00000004) != 0); } /** @@ -26431,7 +28793,7 @@ public Builder setGcaConfig(com.google.cloud.alloydb.v1alpha.GCAInstanceConfig v } else { gcaConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000004; onChanged(); return this; } @@ -26454,7 +28816,7 @@ public Builder setGcaConfig( } else { gcaConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000004; onChanged(); return this; } @@ -26472,7 +28834,7 @@ public Builder setGcaConfig( */ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1alpha.GCAInstanceConfig value) { if (gcaConfigBuilder_ == null) { - if (((bitField1_ & 0x00000002) != 0) + if (((bitField1_ & 0x00000004) != 0) && gcaConfig_ != null && gcaConfig_ != com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.getDefaultInstance()) { @@ -26484,7 +28846,7 @@ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1alpha.GCAInstanceConfig gcaConfigBuilder_.mergeFrom(value); } if (gcaConfig_ != null) { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000004; onChanged(); } return this; @@ -26502,7 +28864,7 @@ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1alpha.GCAInstanceConfig * */ public Builder clearGcaConfig() { - bitField1_ = (bitField1_ & ~0x00000002); + bitField1_ = (bitField1_ & ~0x00000004); gcaConfig_ = null; if (gcaConfigBuilder_ != null) { gcaConfigBuilder_.dispose(); @@ -26524,7 +28886,7 @@ public Builder clearGcaConfig() { * */ public com.google.cloud.alloydb.v1alpha.GCAInstanceConfig.Builder getGcaConfigBuilder() { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000004; 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 7bf6b80b9034..684b6efbe0d1 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 @@ -1201,6 +1201,52 @@ java.lang.String getAnnotationsOrDefault( com.google.cloud.alloydb.v1alpha.Instance.PscInstanceConfigOrBuilder getPscInstanceConfigOrBuilder(); + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pscInstanceInfo field is set. + */ + boolean hasPscInstanceInfo(); + + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscInstanceInfo. + */ + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo getPscInstanceInfo(); + + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1alpha.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.alloydb.v1alpha.Instance.PscInstanceInfoOrBuilder getPscInstanceInfoOrBuilder(); + /** * * @@ -1258,7 +1304,7 @@ java.lang.String getAnnotationsOrDefault( * * * @deprecated google.cloud.alloydb.v1alpha.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=1331 + * google/cloud/alloydb/v1alpha/resources.proto;l=1396 * @return Whether the geminiConfig field is set. */ @java.lang.Deprecated @@ -1277,7 +1323,7 @@ java.lang.String getAnnotationsOrDefault( * * * @deprecated google.cloud.alloydb.v1alpha.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1alpha/resources.proto;l=1331 + * google/cloud/alloydb/v1alpha/resources.proto;l=1396 * @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 eed4a4b0c658..b35bd26ac62a 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 @@ -196,6 +196,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1alpha_Instance_InstanceNetworkConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -501,7 +505,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\"\330)\n" + + "\006source\"\262/\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" @@ -546,17 +550,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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\022Y\n" - + "\016network_config\030\035" - + " \001(\0132<.google.cloud.alloydb.v1alpha.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" + + "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" + "\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.goo" - + "gle.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" + + "\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" @@ -619,20 +625,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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\353\002\n" + + "\027consumer_network_status\030\005 \001(\tB\003\340A\003\032\270\005\n" + "\021PscInstanceConfig\022Q\n" + "\027service_attachment_link\030\001 \001(\tB0\340A\003\372A*\n" + "(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.v1alpha.Instance.PscInterfaceConfigB\003\340A\001\022a\n" - + "\024psc_auto_connections\030\t \003(\0132>.google.cloud.allo" - + "ydb.v1alpha.Instance.PscAutoConnectionConfigB\003\340A\001\032\357\002\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" + + " psc_auto_connection_policy_state\030\r" + + " \001(\0162U.google.cloud.alloydb.v1alpha.Instance.PscInstanc" + + "eConfig.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" + + "\010DISABLED\020\002\032\272\001\n" + + "\017PscInstanceInfo\022+\n" + + "\036effective_psc_auto_dns_enabled\030\001 \001(\010B\003\340A\003\022\037\n" + + "\022psc_auto_dns_names\030\002 \003(\tB\003\340A\003\0221\n" + + "$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.goog" - + "le.cloud.alloydb.v1alpha.Instance.Instan" - + "ceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + + "\034authorized_external_networks\030\001 " + + "\003(\0132N.google.cloud.alloydb.v1alpha.Insta" + + "nce.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" @@ -643,8 +663,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.v1alpha.Instanc" - + "e.ConnectionPoolConfig.FlagsEntryB\003\340A\001\022\031\n" + + " \003(\0132F.google.cloud.alloydb.v1alp" + + "ha.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" @@ -676,14 +696,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020AvailabilityType\022!\n" + "\035AVAILABILITY_TYPE_UNSPECIFIED\020\000\022\t\n" + "\005ZONAL\020\001\022\014\n" - + "\010REGIONAL\020\002\"L\n" + + "\010REGIONAL\020\002\"v\n" + + "\017PscAutoDnsState\022\"\n" + + "\036PSC_AUTO_DNS_STATE_UNSPECIFIED\020\000\022\036\n" + + "\032PSC_AUTO_DNS_STATE_ENABLED\020\001\022\037\n" + + "\033PSC_AUTO_DNS_STATE_DISABLED\020\002\"L\n" + "\020ActivationPolicy\022!\n" + "\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}*" - + "\tinstances2\010instanceR\001\001\"\352\002\n" + + "\037alloydb.googleapis.com/Instance\022Oprojects" + + "/{project}/locations/{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" + "ip_address\030\002 \001(\tB\003\340A\003\022&\n" @@ -691,10 +715,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022$\n" + "\025pem_certificate_chain\030\003 \003(\tB\005\030\001\340A\003\022\031\n" + "\014instance_uid\030\004 \001(\tB\003\340A\003\022\031\n" - + "\014psc_dns_name\030\006 \001(\tB\003\340A\003:\254\001\352A\250\001\n" - + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{project}/locations/{locatio" - + "n}/clusters/{cluster}/instances/{instanc" - + "e}/connectionInfo*\017connectionInfos2\016connectionInfo\"\316\r\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" + "\006Backup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -705,8 +730,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" @@ -720,11 +745,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \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.alloy" - + "db.v1alpha.Backup.QuantityBasedExpiryB\003\340A\003\022\032\n\r" + + "\017expiry_quantity\030\024 \001(\01328.google.cloud.all" + + "oydb.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" @@ -754,28 +780,28 @@ 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\0228p" - + "rojects/{project}/locations/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\225" + + "\035alloydb.googleapis.com/Backup\022" + + "8projects/{project}/locations/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\225" + "\t\n" + "\025SupportedDatabaseFlag\022e\n" - + "\023string_restrictions\030\007 \001(\0132F.google.cloud.alloydb.v1alph" - + "a.SupportedDatabaseFlag.StringRestrictionsH\000\022g\n" - + "\024integer_restrictions\030\010 \001(\0132G.goo" - + "gle.cloud.alloydb.v1alpha.SupportedDatabaseFlag.IntegerRestrictionsH\000\022\"\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" + "\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.cloud." - + "alloydb.v1alpha.SupportedDatabaseFlag.ValueType\022\037\n" + + "value_type\030\003 \001(\0162=.google.clou" + + "d.alloydb.v1alpha.SupportedDatabaseFlag.ValueType\022\037\n" + "\027accepts_multiple_values\030\004 \001(\010\022L\n" - + "\025supported_db_versions\030\005 \003(\0162-.google" - + ".cloud.alloydb.v1alpha.DatabaseVersion\022\033\n" + + "\025supported_db_versions\030\005 \003(\0162-.goog" + + "le.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.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope\032,\n" + "\022StringRestrictions\022\026\n" + "\016allowed_values\030\001 \003(\t\032u\n" + "\023IntegerRestrictions\022.\n" @@ -791,25 +817,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\0224proje" - + "cts/{project}/locations/{location}/flags" - + "/{flag}*\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n" + + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224pro" + + "jects/{project}/locations/{location}/fla" + + "gs/{flag}*\026supportedDatabaseFlags2\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+.google." - + "cloud.alloydb.v1alpha.User.UserTypeB\003\340A\001\022\035\n" + + "\tuser_type\030\005 \001(\0162+.googl" + + "e.cloud.alloydb.v1alpha.User.UserTypeB\003\340A\001\022\035\n" + "\020keep_extra_roles\030\006 \001(\010B\003\340A\004\"Q\n" - + "\010UserT", - "ype\022\031\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}/locations/{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" @@ -819,8 +844,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}/loc" - + "ations/{location}/clusters/{cluster}/databases/{database}*" + + "\037alloydb.googleapis.com/Database\022Oprojects/{project}/l" + + "ocations/{location}/clusters/{cluster}/databases/{database}*" + "\tdatabases2\010databaseR\001\001B\027\n" + "\025_is_template_database*^\n" + "\014InstanceView\022\035\n" @@ -843,20 +868,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\016ResourcesProto" - + "P\001Z:cloud.google.com/go/alloydb/apiv1alp" - + "ha/alloydbpb;alloydbpb\252\002\034Google.Cloud.Al" - + "loyDb.V1Alpha\312\002\034Google\\Cloud\\AlloyDb\\V1a" - + "lpha\352\002\037Google::Cloud::AlloyDB::V1alpha\352A\246\001\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{project}/locations/{loca" - + "tion}/keyRings/{key_ring}/cryptoKeys/{cr" - + "ypto_key}/cryptoKeyVersions/{crypto_key_version}\352AN\n" - + "\036compute.googleapis.com/Netw" - + "ork\022,projects/{project}/global/networks/{network}\352Ax\n" - + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/locations/{l" - + "ocation}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352Aw\n" - + "(compute.googleapis.com/ServiceAttachment\022Kprojects/{project}/re" - + "gions/{region}/serviceAttachments/{service_attachment}b\006proto3" + + " com.google.cloud.alloydb.v1alphaB\016ResourcesPro" + + "toP\001Z:cloud.google.com/go/alloydb/apiv1a" + + "lpha/alloydbpb;alloydbpb\252\002\034Google.Cloud." + + "AlloyDb.V1Alpha\312\002\034Google\\Cloud\\AlloyDb\\V" + + "1alpha\352\002\037Google::Cloud::AlloyDB::V1alpha\352A\246\001\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{project}/locations/{lo" + + "cation}/keyRings/{key_ring}/cryptoKeys/{" + + "crypto_key}/cryptoKeyVersions/{crypto_key_version}\352AN\n" + + "\036compute.googleapis.com/Ne" + + "twork\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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1185,6 +1210,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SatisfiesPzi", "SatisfiesPzs", "PscInstanceConfig", + "PscInstanceInfo", "NetworkConfig", "GeminiConfig", "OutboundPublicIpAddresses", @@ -1287,9 +1313,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PscDnsName", "PscInterfaceConfigs", "PscAutoConnections", + "PscAutoDnsState", + "PscAutoConnectionPolicyState", }); - internal_static_google_cloud_alloydb_v1alpha_Instance_InstanceNetworkConfig_descriptor = + 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_PscInstanceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1alpha_Instance_PscInstanceInfo_descriptor, + new java.lang.String[] { + "EffectivePscAutoDnsEnabled", + "PscAutoDnsNames", + "EffectivePscAutoConnectionPolicy", + "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_InstanceNetworkConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_InstanceNetworkConfig_descriptor, @@ -1310,7 +1349,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(11); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(12); internal_static_google_cloud_alloydb_v1alpha_Instance_ConnectionPoolConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_ConnectionPoolConfig_descriptor, @@ -1327,7 +1366,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(12); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(13); internal_static_google_cloud_alloydb_v1alpha_Instance_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_LabelsEntry_descriptor, @@ -1335,7 +1374,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(13); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(14); internal_static_google_cloud_alloydb_v1alpha_Instance_DatabaseFlagsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_DatabaseFlagsEntry_descriptor, @@ -1343,7 +1382,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(14); + internal_static_google_cloud_alloydb_v1alpha_Instance_descriptor.getNestedType(15); internal_static_google_cloud_alloydb_v1alpha_Instance_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1alpha_Instance_AnnotationsEntry_descriptor, @@ -1362,6 +1401,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PemCertificateChain", "InstanceUid", "PscDnsName", + "PscAutoDnsName", }); internal_static_google_cloud_alloydb_v1alpha_Backup_descriptor = getDescriptor().getMessageType(15); 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 d6cb76972f38..19d20e43b097 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 @@ -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. @@ -1009,6 +1009,20 @@ message Instance { // PscInstanceConfig contains PSC related configuration at an // instance level. message PscInstanceConfig { + // The state of the PSC auto connection policy. + enum PscAutoConnectionPolicyState { + // The state is unspecified. For old instances, this means the PSC auto + // connection is disabled. For new instances, this means the PSC auto + // connection is enabled by default. + PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED = 0; + + // Enables the PSC auto connection for the instance. + ENABLED = 1; + + // Disables the PSC auto connection for the instance. + DISABLED = 2; + } + // Output only. The service attachment created when Private // Service Connect (PSC) is enabled for the instance. // The name of the resource will be in the format of @@ -1039,6 +1053,37 @@ message Instance { // Optional. Configurations for setting up PSC service automation. repeated PscAutoConnectionConfig psc_auto_connections = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for setting up PSC auto DNS for the instance. + PscAutoDnsState psc_auto_dns_state = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for setting up PSC auto connection for the + // instance. + PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Information about the Private Service Connect (PSC) for the instance. + message PscInstanceInfo { + // Output only. The effective state of the PSC auto DNS for the instance. + bool effective_psc_auto_dns_enabled = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Specifies the auto DNS names for the instance. + repeated string psc_auto_dns_names = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates if the PSC auto connection policy is enabled for + // the instance. For older instances, this will be off by default, but for + // newer instances, this will be auto-enabled. + bool effective_psc_auto_connection_policy = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The PSC service connection policy name. The format is + // "projects//regions//serviceConnectionPolicies/" + string service_connection_policy = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Metadata related to instance-level network configuration. @@ -1168,6 +1213,21 @@ message Instance { REGIONAL = 2; } + // The state of the PSC auto DNS. + enum PscAutoDnsState { + // The state is unspecified. For old instances, this means the PSC auto DNS + // is disabled. For new instances, this means the PSC auto DNS is enabled + // by default. Use `effective_psc_auto_dns_enabled` to check the + // effective state of the PSC auto DNS. + PSC_AUTO_DNS_STATE_UNSPECIFIED = 0; + + // Enables the PSC auto DNS for the instance. + PSC_AUTO_DNS_STATE_ENABLED = 1; + + // Disables the PSC auto DNS for the instance. + PSC_AUTO_DNS_STATE_DISABLED = 2; + } + // Specifies whether an instance needs to spin up. enum ActivationPolicy { // The policy is not specified. @@ -1323,6 +1383,11 @@ message Instance { PscInstanceConfig psc_instance_config = 28 [(google.api.field_behavior) = OPTIONAL]; + // Output only. Information about the Private Service Connect (PSC) for the + // instance. + PscInstanceInfo psc_instance_info = 46 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Instance-level network configuration. InstanceNetworkConfig network_config = 29 [(google.api.field_behavior) = OPTIONAL]; @@ -1394,6 +1459,10 @@ message ConnectionInfo { // Output only. The DNS name to use with PSC for the Instance. string psc_dns_name = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Specifies the DNS name to use with PSC service automation for + // the Instance. + string psc_auto_dns_name = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Message describing Backup object 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 4ed0fca9bbfc..e4a9755a7447 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 @@ -59,6 +59,7 @@ private ConnectionInfo() { pemCertificateChain_ = com.google.protobuf.LazyStringArrayList.emptyList(); instanceUid_ = ""; pscDnsName_ = ""; + pscAutoDnsName_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -270,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=1382 + * google/cloud/alloydb/v1beta/resources.proto;l=1447 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -291,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=1382 + * google/cloud/alloydb/v1beta/resources.proto;l=1447 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -312,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=1382 + * google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -334,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=1382 + * google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ @@ -449,6 +450,61 @@ public com.google.protobuf.ByteString getPscDnsNameBytes() { } } + public static final int PSC_AUTO_DNS_NAME_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscAutoDnsName_ = ""; + + /** + * + * + *
+   * Output only. Specifies the DNS name to use with PSC service automation for
+   * the Instance.
+   * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscAutoDnsName. + */ + @java.lang.Override + public java.lang.String getPscAutoDnsName() { + java.lang.Object ref = pscAutoDnsName_; + 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(); + pscAutoDnsName_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Specifies the DNS name to use with PSC service automation for
+   * the Instance.
+   * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscAutoDnsName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscAutoDnsNameBytes() { + java.lang.Object ref = pscAutoDnsName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscAutoDnsName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -481,6 +537,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pscDnsName_)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, pscDnsName_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pscAutoDnsName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, pscAutoDnsName_); + } getUnknownFields().writeTo(output); } @@ -513,6 +572,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pscDnsName_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, pscDnsName_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pscAutoDnsName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, pscAutoDnsName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -535,6 +597,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPemCertificateChainList().equals(other.getPemCertificateChainList())) return false; if (!getInstanceUid().equals(other.getInstanceUid())) return false; if (!getPscDnsName().equals(other.getPscDnsName())) return false; + if (!getPscAutoDnsName().equals(other.getPscAutoDnsName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -560,6 +623,8 @@ public int hashCode() { hash = (53 * hash) + getInstanceUid().hashCode(); hash = (37 * hash) + PSC_DNS_NAME_FIELD_NUMBER; hash = (53 * hash) + getPscDnsName().hashCode(); + hash = (37 * hash) + PSC_AUTO_DNS_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPscAutoDnsName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -707,6 +772,7 @@ public Builder clear() { pemCertificateChain_ = com.google.protobuf.LazyStringArrayList.emptyList(); instanceUid_ = ""; pscDnsName_ = ""; + pscAutoDnsName_ = ""; return this; } @@ -762,6 +828,9 @@ private void buildPartial0(com.google.cloud.alloydb.v1beta.ConnectionInfo result if (((from_bitField0_ & 0x00000020) != 0)) { result.pscDnsName_ = pscDnsName_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pscAutoDnsName_ = pscAutoDnsName_; + } } @java.lang.Override @@ -811,6 +880,11 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.ConnectionInfo other) { bitField0_ |= 0x00000020; onChanged(); } + if (!other.getPscAutoDnsName().isEmpty()) { + pscAutoDnsName_ = other.pscAutoDnsName_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -874,6 +948,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 74: + { + pscAutoDnsName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1289,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=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @return A list containing the pemCertificateChain. */ @java.lang.Deprecated @@ -1311,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=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @return The count of pemCertificateChain. */ @java.lang.Deprecated @@ -1332,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=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param index The index of the element to return. * @return The pemCertificateChain at the given index. */ @@ -1354,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=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ @@ -1376,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=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param index The index to set the value at. * @param value The pemCertificateChain to set. * @return This builder for chaining. @@ -1406,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=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param value The pemCertificateChain to add. * @return This builder for chaining. */ @@ -1435,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=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param values The pemCertificateChain to add. * @return This builder for chaining. */ @@ -1461,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=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1486,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=1382 + * See google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param value The bytes of the pemCertificateChain to add. * @return This builder for chaining. */ @@ -1725,6 +1805,122 @@ public Builder setPscDnsNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object pscAutoDnsName_ = ""; + + /** + * + * + *
+     * Output only. Specifies the DNS name to use with PSC service automation for
+     * the Instance.
+     * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscAutoDnsName. + */ + public java.lang.String getPscAutoDnsName() { + java.lang.Object ref = pscAutoDnsName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscAutoDnsName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Specifies the DNS name to use with PSC service automation for
+     * the Instance.
+     * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscAutoDnsName. + */ + public com.google.protobuf.ByteString getPscAutoDnsNameBytes() { + java.lang.Object ref = pscAutoDnsName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscAutoDnsName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Specifies the DNS name to use with PSC service automation for
+     * the Instance.
+     * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The pscAutoDnsName to set. + * @return This builder for chaining. + */ + public Builder setPscAutoDnsName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscAutoDnsName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Specifies the DNS name to use with PSC service automation for
+     * the Instance.
+     * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPscAutoDnsName() { + pscAutoDnsName_ = getDefaultInstance().getPscAutoDnsName(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Specifies the DNS name to use with PSC service automation for
+     * the Instance.
+     * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for pscAutoDnsName to set. + * @return This builder for chaining. + */ + public Builder setPscAutoDnsNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscAutoDnsName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.ConnectionInfo) } 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 8f91da0d6637..b3b0546704fa 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=1382 + * google/cloud/alloydb/v1beta/resources.proto;l=1447 * @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=1382 + * google/cloud/alloydb/v1beta/resources.proto;l=1447 * @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=1382 + * google/cloud/alloydb/v1beta/resources.proto;l=1447 * @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=1382 + * google/cloud/alloydb/v1beta/resources.proto;l=1447 * @param index The index of the value to return. * @return The bytes of the pemCertificateChain at the given index. */ @@ -249,4 +249,32 @@ public interface ConnectionInfoOrBuilder * @return The bytes for pscDnsName. */ com.google.protobuf.ByteString getPscDnsNameBytes(); + + /** + * + * + *
+   * Output only. Specifies the DNS name to use with PSC service automation for
+   * the Instance.
+   * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscAutoDnsName. + */ + java.lang.String getPscAutoDnsName(); + + /** + * + * + *
+   * Output only. Specifies the DNS name to use with PSC service automation for
+   * the Instance.
+   * 
+ * + * string psc_auto_dns_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscAutoDnsName. + */ + com.google.protobuf.ByteString getPscAutoDnsNameBytes(); } 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 c161199984ee..6a3b79985f44 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=1772 + * google/cloud/alloydb/v1beta/resources.proto;l=1841 * @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=1772 + * google/cloud/alloydb/v1beta/resources.proto;l=1841 * @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=1772 + * google/cloud/alloydb/v1beta/resources.proto;l=1841 * @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=1772 + * google/cloud/alloydb/v1beta/resources.proto;l=1841 * @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 11c870c67988..a8e704e8c202 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=1772 + * google/cloud/alloydb/v1beta/resources.proto;l=1841 * @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 9d315c0dddaa..58cbb5e48678 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 @@ -796,6 +796,183 @@ private AvailabilityType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1beta.Instance.AvailabilityType) } + /** + * + * + *
+   * The state of the PSC auto DNS.
+   * 
+ * + * Protobuf enum {@code google.cloud.alloydb.v1beta.Instance.PscAutoDnsState} + */ + public enum PscAutoDnsState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The state is unspecified. For old instances, this means the PSC auto DNS
+     * is disabled. For new instances, this means the PSC auto DNS is enabled
+     * by default. Use `effective_psc_auto_dns_enabled` to check the
+     * effective state of the PSC auto DNS.
+     * 
+ * + * PSC_AUTO_DNS_STATE_UNSPECIFIED = 0; + */ + PSC_AUTO_DNS_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Enables the PSC auto DNS for the instance.
+     * 
+ * + * PSC_AUTO_DNS_STATE_ENABLED = 1; + */ + PSC_AUTO_DNS_STATE_ENABLED(1), + /** + * + * + *
+     * Disables the PSC auto DNS for the instance.
+     * 
+ * + * PSC_AUTO_DNS_STATE_DISABLED = 2; + */ + PSC_AUTO_DNS_STATE_DISABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PscAutoDnsState"); + } + + /** + * + * + *
+     * The state is unspecified. For old instances, this means the PSC auto DNS
+     * is disabled. For new instances, this means the PSC auto DNS is enabled
+     * by default. Use `effective_psc_auto_dns_enabled` to check the
+     * effective state of the PSC auto DNS.
+     * 
+ * + * PSC_AUTO_DNS_STATE_UNSPECIFIED = 0; + */ + public static final int PSC_AUTO_DNS_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Enables the PSC auto DNS for the instance.
+     * 
+ * + * PSC_AUTO_DNS_STATE_ENABLED = 1; + */ + public static final int PSC_AUTO_DNS_STATE_ENABLED_VALUE = 1; + + /** + * + * + *
+     * Disables the PSC auto DNS for the instance.
+     * 
+ * + * PSC_AUTO_DNS_STATE_DISABLED = 2; + */ + public static final int PSC_AUTO_DNS_STATE_DISABLED_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 PscAutoDnsState 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 PscAutoDnsState forNumber(int value) { + switch (value) { + case 0: + return PSC_AUTO_DNS_STATE_UNSPECIFIED; + case 1: + return PSC_AUTO_DNS_STATE_ENABLED; + case 2: + return PSC_AUTO_DNS_STATE_DISABLED; + 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 PscAutoDnsState findValueByNumber(int number) { + return PscAutoDnsState.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.alloydb.v1beta.Instance.getDescriptor().getEnumTypes().get(3); + } + + private static final PscAutoDnsState[] VALUES = values(); + + public static PscAutoDnsState 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 PscAutoDnsState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1beta.Instance.PscAutoDnsState) + } + /** * * @@ -942,7 +1119,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.alloydb.v1beta.Instance.getDescriptor().getEnumTypes().get(3); + return com.google.cloud.alloydb.v1beta.Instance.getDescriptor().getEnumTypes().get(4); } private static final ActivationPolicy[] VALUES = values(); @@ -10980,6 +11157,69 @@ com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig getPscAutoConne */ com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder getPscAutoConnectionsOrBuilder(int index); + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto DNS for the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoDnsState. + */ + int getPscAutoDnsStateValue(); + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto DNS for the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoDnsState. + */ + com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState getPscAutoDnsState(); + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto connection for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoConnectionPolicyState. + */ + int getPscAutoConnectionPolicyStateValue(); + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto connection for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoConnectionPolicyState. + */ + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + getPscAutoConnectionPolicyState(); } /** @@ -11019,6 +11259,8 @@ private PscInstanceConfig() { pscDnsName_ = ""; pscInterfaceConfigs_ = java.util.Collections.emptyList(); pscAutoConnections_ = java.util.Collections.emptyList(); + pscAutoDnsState_ = 0; + pscAutoConnectionPolicyState_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -11036,58 +11278,237 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.Builder.class); } - public static final int SERVICE_ATTACHMENT_LINK_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object serviceAttachmentLink_ = ""; - /** * * *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * The state of the PSC auto connection policy.
      * 
* - * - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The serviceAttachmentLink. + * Protobuf enum {@code + * google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState} */ - @java.lang.Override - public java.lang.String getServiceAttachmentLink() { - java.lang.Object ref = serviceAttachmentLink_; - 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(); - serviceAttachmentLink_ = s; - return s; + public enum PscAutoConnectionPolicyState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * The state is unspecified. For old instances, this means the PSC auto
+       * connection is disabled. For new instances, this means the PSC auto
+       * connection is enabled by default.
+       * 
+ * + * PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED = 0; + */ + PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED(0), + /** + * + * + *
+       * Enables the PSC auto connection for the instance.
+       * 
+ * + * ENABLED = 1; + */ + ENABLED(1), + /** + * + * + *
+       * Disables the PSC auto connection for the instance.
+       * 
+ * + * DISABLED = 2; + */ + DISABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PscAutoConnectionPolicyState"); } - } - /** - * - * - *
-     * Output only. The service attachment created when Private
-     * Service Connect (PSC) is enabled for the instance.
-     * The name of the resource will be in the format of
-     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
-     * 
- * - * - * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for serviceAttachmentLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { + /** + * + * + *
+       * The state is unspecified. For old instances, this means the PSC auto
+       * connection is disabled. For new instances, this means the PSC auto
+       * connection is enabled by default.
+       * 
+ * + * PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED = 0; + */ + public static final int PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Enables the PSC auto connection for the instance.
+       * 
+ * + * ENABLED = 1; + */ + public static final int ENABLED_VALUE = 1; + + /** + * + * + *
+       * Disables the PSC auto connection for the instance.
+       * 
+ * + * DISABLED = 2; + */ + public static final int DISABLED_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 PscAutoConnectionPolicyState 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 PscAutoConnectionPolicyState forNumber(int value) { + switch (value) { + case 0: + return PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED; + case 1: + return ENABLED; + case 2: + return DISABLED; + 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 PscAutoConnectionPolicyState findValueByNumber(int number) { + return PscAutoConnectionPolicyState.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.alloydb.v1beta.Instance.PscInstanceConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PscAutoConnectionPolicyState[] VALUES = values(); + + public static PscAutoConnectionPolicyState 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 PscAutoConnectionPolicyState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState) + } + + public static final int SERVICE_ATTACHMENT_LINK_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachmentLink_ = ""; + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAttachmentLink. + */ + @java.lang.Override + public java.lang.String getServiceAttachmentLink() { + java.lang.Object ref = serviceAttachmentLink_; + 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(); + serviceAttachmentLink_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The service attachment created when Private
+     * Service Connect (PSC) is enabled for the instance.
+     * The name of the resource will be in the format of
+     * `projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>`
+     * 
+ * + * + * string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAttachmentLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAttachmentLinkBytes() { java.lang.Object ref = serviceAttachmentLink_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = @@ -11431,6 +11852,98 @@ public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig getPscAu return pscAutoConnections_.get(index); } + public static final int PSC_AUTO_DNS_STATE_FIELD_NUMBER = 11; + private int pscAutoDnsState_ = 0; + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto DNS for the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoDnsState. + */ + @java.lang.Override + public int getPscAutoDnsStateValue() { + return pscAutoDnsState_; + } + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto DNS for the instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoDnsState. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState getPscAutoDnsState() { + com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState result = + com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState.forNumber(pscAutoDnsState_); + return result == null + ? com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState.UNRECOGNIZED + : result; + } + + public static final int PSC_AUTO_CONNECTION_POLICY_STATE_FIELD_NUMBER = 13; + private int pscAutoConnectionPolicyState_ = 0; + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto connection for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoConnectionPolicyState. + */ + @java.lang.Override + public int getPscAutoConnectionPolicyStateValue() { + return pscAutoConnectionPolicyState_; + } + + /** + * + * + *
+     * Optional. Configuration for setting up PSC auto connection for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoConnectionPolicyState. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + getPscAutoConnectionPolicyState() { + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + result = + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig + .PscAutoConnectionPolicyState.forNumber(pscAutoConnectionPolicyState_); + return result == null + ? com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + .UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -11461,6 +11974,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < pscAutoConnections_.size(); i++) { output.writeMessage(9, pscAutoConnections_.get(i)); } + if (pscAutoDnsState_ + != com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState.PSC_AUTO_DNS_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(11, pscAutoDnsState_); + } + if (pscAutoConnectionPolicyState_ + != com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + .PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(13, pscAutoConnectionPolicyState_); + } getUnknownFields().writeTo(output); } @@ -11493,6 +12017,19 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, pscAutoConnections_.get(i)); } + if (pscAutoDnsState_ + != com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState.PSC_AUTO_DNS_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, pscAutoDnsState_); + } + if (pscAutoConnectionPolicyState_ + != com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + .PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 13, pscAutoConnectionPolicyState_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -11515,6 +12052,8 @@ public boolean equals(final java.lang.Object obj) { if (!getPscDnsName().equals(other.getPscDnsName())) return false; if (!getPscInterfaceConfigsList().equals(other.getPscInterfaceConfigsList())) return false; if (!getPscAutoConnectionsList().equals(other.getPscAutoConnectionsList())) return false; + if (pscAutoDnsState_ != other.pscAutoDnsState_) return false; + if (pscAutoConnectionPolicyState_ != other.pscAutoConnectionPolicyState_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -11542,6 +12081,10 @@ public int hashCode() { hash = (37 * hash) + PSC_AUTO_CONNECTIONS_FIELD_NUMBER; hash = (53 * hash) + getPscAutoConnectionsList().hashCode(); } + hash = (37 * hash) + PSC_AUTO_DNS_STATE_FIELD_NUMBER; + hash = (53 * hash) + pscAutoDnsState_; + hash = (37 * hash) + PSC_AUTO_CONNECTION_POLICY_STATE_FIELD_NUMBER; + hash = (53 * hash) + pscAutoConnectionPolicyState_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -11701,6 +12244,8 @@ public Builder clear() { pscAutoConnectionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); + pscAutoDnsState_ = 0; + pscAutoConnectionPolicyState_ = 0; return this; } @@ -11772,6 +12317,12 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.pscDnsName_ = pscDnsName_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.pscAutoDnsState_ = pscAutoDnsState_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pscAutoConnectionPolicyState_ = pscAutoConnectionPolicyState_; + } } @java.lang.Override @@ -11862,6 +12413,12 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance.PscInstanceCon } } } + if (other.pscAutoDnsState_ != 0) { + setPscAutoDnsStateValue(other.getPscAutoDnsStateValue()); + } + if (other.pscAutoConnectionPolicyState_ != 0) { + setPscAutoConnectionPolicyStateValue(other.getPscAutoConnectionPolicyStateValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -11935,6 +12492,18 @@ public Builder mergeFrom( } break; } // case 74 + case 88: + { + pscAutoDnsState_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 88 + case 104: + { + pscAutoConnectionPolicyState_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -13104,24 +13673,1478 @@ public Builder addPscAutoConnections( * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscAutoConnections( + int index, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder + builderForValue) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.add(index, builderForValue.build()); + onChanged(); + } else { + pscAutoConnectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllPscAutoConnections( + java.lang.Iterable< + ? extends com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig> + values) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscAutoConnections_); + onChanged(); + } else { + pscAutoConnectionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPscAutoConnections() { + if (pscAutoConnectionsBuilder_ == null) { + pscAutoConnections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + pscAutoConnectionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removePscAutoConnections(int index) { + if (pscAutoConnectionsBuilder_ == null) { + ensurePscAutoConnectionsIsMutable(); + pscAutoConnections_.remove(index); + onChanged(); + } else { + pscAutoConnectionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder + getPscAutoConnectionsBuilder(int index) { + return internalGetPscAutoConnectionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder + getPscAutoConnectionsOrBuilder(int index) { + if (pscAutoConnectionsBuilder_ == null) { + return pscAutoConnections_.get(index); + } else { + return pscAutoConnectionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder> + getPscAutoConnectionsOrBuilderList() { + if (pscAutoConnectionsBuilder_ != null) { + return pscAutoConnectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pscAutoConnections_); + } + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder + addPscAutoConnectionsBuilder() { + return internalGetPscAutoConnectionsFieldBuilder() + .addBuilder( + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig + .getDefaultInstance()); + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder + addPscAutoConnectionsBuilder(int index) { + return internalGetPscAutoConnectionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig + .getDefaultInstance()); + } + + /** + * + * + *
+       * Optional. Configurations for setting up PSC service automation.
+       * 
+ * + * + * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder> + getPscAutoConnectionsBuilderList() { + return internalGetPscAutoConnectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder> + internalGetPscAutoConnectionsFieldBuilder() { + if (pscAutoConnectionsBuilder_ == null) { + pscAutoConnectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder>( + pscAutoConnections_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + pscAutoConnections_ = null; + } + return pscAutoConnectionsBuilder_; + } + + private int pscAutoDnsState_ = 0; + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto DNS for the instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoDnsState. + */ + @java.lang.Override + public int getPscAutoDnsStateValue() { + return pscAutoDnsState_; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto DNS for the instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for pscAutoDnsState to set. + * @return This builder for chaining. + */ + public Builder setPscAutoDnsStateValue(int value) { + pscAutoDnsState_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto DNS for the instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoDnsState. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState getPscAutoDnsState() { + com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState result = + com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState.forNumber(pscAutoDnsState_); + return result == null + ? com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto DNS for the instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The pscAutoDnsState to set. + * @return This builder for chaining. + */ + public Builder setPscAutoDnsState( + com.google.cloud.alloydb.v1beta.Instance.PscAutoDnsState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + pscAutoDnsState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto DNS for the instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscAutoDnsState psc_auto_dns_state = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPscAutoDnsState() { + bitField0_ = (bitField0_ & ~0x00000020); + pscAutoDnsState_ = 0; + onChanged(); + return this; + } + + private int pscAutoConnectionPolicyState_ = 0; + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto connection for the
+       * instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for pscAutoConnectionPolicyState. + */ + @java.lang.Override + public int getPscAutoConnectionPolicyStateValue() { + return pscAutoConnectionPolicyState_; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto connection for the
+       * instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for pscAutoConnectionPolicyState to set. + * @return This builder for chaining. + */ + public Builder setPscAutoConnectionPolicyStateValue(int value) { + pscAutoConnectionPolicyState_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto connection for the
+       * instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pscAutoConnectionPolicyState. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + getPscAutoConnectionPolicyState() { + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + result = + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig + .PscAutoConnectionPolicyState.forNumber(pscAutoConnectionPolicyState_); + return result == null + ? com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig + .PscAutoConnectionPolicyState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto connection for the
+       * instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The pscAutoConnectionPolicyState to set. + * @return This builder for chaining. + */ + public Builder setPscAutoConnectionPolicyState( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + pscAutoConnectionPolicyState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Configuration for setting up PSC auto connection for the
+       * instance.
+       * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceConfig.PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPscAutoConnectionPolicyState() { + bitField0_ = (bitField0_ & ~0x00000040); + pscAutoConnectionPolicyState_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) + private static final com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig(); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PscInstanceConfig 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.PscInstanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PscInstanceInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1beta.Instance.PscInstanceInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The effective state of the PSC auto DNS for the instance.
+     * 
+ * + * bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectivePscAutoDnsEnabled. + */ + boolean getEffectivePscAutoDnsEnabled(); + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the pscAutoDnsNames. + */ + java.util.List getPscAutoDnsNamesList(); + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of pscAutoDnsNames. + */ + int getPscAutoDnsNamesCount(); + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The pscAutoDnsNames at the given index. + */ + java.lang.String getPscAutoDnsNames(int index); + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pscAutoDnsNames at the given index. + */ + com.google.protobuf.ByteString getPscAutoDnsNamesBytes(int index); + + /** + * + * + *
+     * Output only. Indicates if the PSC auto connection policy is enabled for
+     * the instance. For older instances, this will be off by default, but for
+     * newer instances, this will be auto-enabled.
+     * 
+ * + * + * bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectivePscAutoConnectionPolicy. + */ + boolean getEffectivePscAutoConnectionPolicy(); + + /** + * + * + *
+     * Output only. The PSC service connection policy name. The format is
+     * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
+     * 
+ * + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceConnectionPolicy. + */ + java.lang.String getServiceConnectionPolicy(); + + /** + * + * + *
+     * Output only. The PSC service connection policy name. The format is
+     * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
+     * 
+ * + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for serviceConnectionPolicy. + */ + com.google.protobuf.ByteString getServiceConnectionPolicyBytes(); + } + + /** + * + * + *
+   * Information about the Private Service Connect (PSC) for the instance.
+   * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.PscInstanceInfo} + */ + public static final class PscInstanceInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.alloydb.v1beta.Instance.PscInstanceInfo) + PscInstanceInfoOrBuilder { + 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= */ "", + "PscInstanceInfo"); + } + + // Use PscInstanceInfo.newBuilder() to construct. + private PscInstanceInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PscInstanceInfo() { + pscAutoDnsNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceConnectionPolicy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_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_PscInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.class, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.Builder.class); + } + + public static final int EFFECTIVE_PSC_AUTO_DNS_ENABLED_FIELD_NUMBER = 1; + private boolean effectivePscAutoDnsEnabled_ = false; + + /** + * + * + *
+     * Output only. The effective state of the PSC auto DNS for the instance.
+     * 
+ * + * bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectivePscAutoDnsEnabled. + */ + @java.lang.Override + public boolean getEffectivePscAutoDnsEnabled() { + return effectivePscAutoDnsEnabled_; + } + + public static final int PSC_AUTO_DNS_NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pscAutoDnsNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the pscAutoDnsNames. + */ + public com.google.protobuf.ProtocolStringList getPscAutoDnsNamesList() { + return pscAutoDnsNames_; + } + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of pscAutoDnsNames. + */ + public int getPscAutoDnsNamesCount() { + return pscAutoDnsNames_.size(); + } + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The pscAutoDnsNames at the given index. + */ + public java.lang.String getPscAutoDnsNames(int index) { + return pscAutoDnsNames_.get(index); + } + + /** + * + * + *
+     * Output only. Specifies the auto DNS names for the instance.
+     * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pscAutoDnsNames at the given index. + */ + public com.google.protobuf.ByteString getPscAutoDnsNamesBytes(int index) { + return pscAutoDnsNames_.getByteString(index); + } + + public static final int EFFECTIVE_PSC_AUTO_CONNECTION_POLICY_FIELD_NUMBER = 3; + private boolean effectivePscAutoConnectionPolicy_ = false; + + /** + * + * + *
+     * Output only. Indicates if the PSC auto connection policy is enabled for
+     * the instance. For older instances, this will be off by default, but for
+     * newer instances, this will be auto-enabled.
+     * 
+ * + * + * bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectivePscAutoConnectionPolicy. + */ + @java.lang.Override + public boolean getEffectivePscAutoConnectionPolicy() { + return effectivePscAutoConnectionPolicy_; + } + + public static final int SERVICE_CONNECTION_POLICY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceConnectionPolicy_ = ""; + + /** + * + * + *
+     * Output only. The PSC service connection policy name. The format is
+     * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
+     * 
+ * + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceConnectionPolicy. + */ + @java.lang.Override + public java.lang.String getServiceConnectionPolicy() { + java.lang.Object ref = serviceConnectionPolicy_; + 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(); + serviceConnectionPolicy_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The PSC service connection policy name. The format is
+     * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
+     * 
+ * + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for serviceConnectionPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceConnectionPolicyBytes() { + java.lang.Object ref = serviceConnectionPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceConnectionPolicy_ = 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 (effectivePscAutoDnsEnabled_ != false) { + output.writeBool(1, effectivePscAutoDnsEnabled_); + } + for (int i = 0; i < pscAutoDnsNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, pscAutoDnsNames_.getRaw(i)); + } + if (effectivePscAutoConnectionPolicy_ != false) { + output.writeBool(3, effectivePscAutoConnectionPolicy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceConnectionPolicy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, serviceConnectionPolicy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (effectivePscAutoDnsEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, effectivePscAutoDnsEnabled_); + } + { + int dataSize = 0; + for (int i = 0; i < pscAutoDnsNames_.size(); i++) { + dataSize += computeStringSizeNoTag(pscAutoDnsNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getPscAutoDnsNamesList().size(); + } + if (effectivePscAutoConnectionPolicy_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, effectivePscAutoConnectionPolicy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceConnectionPolicy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, serviceConnectionPolicy_); + } + 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.PscInstanceInfo)) { + return super.equals(obj); + } + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo other = + (com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo) obj; + + if (getEffectivePscAutoDnsEnabled() != other.getEffectivePscAutoDnsEnabled()) return false; + if (!getPscAutoDnsNamesList().equals(other.getPscAutoDnsNamesList())) return false; + if (getEffectivePscAutoConnectionPolicy() != other.getEffectivePscAutoConnectionPolicy()) + return false; + if (!getServiceConnectionPolicy().equals(other.getServiceConnectionPolicy())) 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) + EFFECTIVE_PSC_AUTO_DNS_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEffectivePscAutoDnsEnabled()); + if (getPscAutoDnsNamesCount() > 0) { + hash = (37 * hash) + PSC_AUTO_DNS_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getPscAutoDnsNamesList().hashCode(); + } + hash = (37 * hash) + EFFECTIVE_PSC_AUTO_CONNECTION_POLICY_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEffectivePscAutoConnectionPolicy()); + hash = (37 * hash) + SERVICE_CONNECTION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getServiceConnectionPolicy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo 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.PscInstanceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo 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.PscInstanceInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo 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.PscInstanceInfo 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.PscInstanceInfo 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.PscInstanceInfo 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.PscInstanceInfo 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.PscInstanceInfo 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.PscInstanceInfo 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.PscInstanceInfo 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 the Private Service Connect (PSC) for the instance.
+     * 
+ * + * Protobuf type {@code google.cloud.alloydb.v1beta.Instance.PscInstanceInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.alloydb.v1beta.Instance.PscInstanceInfo) + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.alloydb.v1beta.ResourcesProto + .internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_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_PscInstanceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.class, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.Builder.class); + } + + // Construct using com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + effectivePscAutoDnsEnabled_ = false; + pscAutoDnsNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + effectivePscAutoConnectionPolicy_ = false; + serviceConnectionPolicy_ = ""; + 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_PscInstanceInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo getDefaultInstanceForType() { + return com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo build() { + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo buildPartial() { + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo result = + new com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.effectivePscAutoDnsEnabled_ = effectivePscAutoDnsEnabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + pscAutoDnsNames_.makeImmutable(); + result.pscAutoDnsNames_ = pscAutoDnsNames_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.effectivePscAutoConnectionPolicy_ = effectivePscAutoConnectionPolicy_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceConnectionPolicy_ = serviceConnectionPolicy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo) { + return mergeFrom((com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo other) { + if (other == com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.getDefaultInstance()) + return this; + if (other.getEffectivePscAutoDnsEnabled() != false) { + setEffectivePscAutoDnsEnabled(other.getEffectivePscAutoDnsEnabled()); + } + if (!other.pscAutoDnsNames_.isEmpty()) { + if (pscAutoDnsNames_.isEmpty()) { + pscAutoDnsNames_ = other.pscAutoDnsNames_; + bitField0_ |= 0x00000002; + } else { + ensurePscAutoDnsNamesIsMutable(); + pscAutoDnsNames_.addAll(other.pscAutoDnsNames_); + } + onChanged(); + } + if (other.getEffectivePscAutoConnectionPolicy() != false) { + setEffectivePscAutoConnectionPolicy(other.getEffectivePscAutoConnectionPolicy()); + } + if (!other.getServiceConnectionPolicy().isEmpty()) { + serviceConnectionPolicy_ = other.serviceConnectionPolicy_; + 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 8: + { + effectivePscAutoDnsEnabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePscAutoDnsNamesIsMutable(); + pscAutoDnsNames_.add(s); + break; + } // case 18 + case 24: + { + effectivePscAutoConnectionPolicy_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + serviceConnectionPolicy_ = 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 boolean effectivePscAutoDnsEnabled_; + + /** + * + * + *
+       * Output only. The effective state of the PSC auto DNS for the instance.
+       * 
+ * + * bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectivePscAutoDnsEnabled. + */ + @java.lang.Override + public boolean getEffectivePscAutoDnsEnabled() { + return effectivePscAutoDnsEnabled_; + } + + /** + * + * + *
+       * Output only. The effective state of the PSC auto DNS for the instance.
+       * 
+ * + * bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The effectivePscAutoDnsEnabled to set. + * @return This builder for chaining. + */ + public Builder setEffectivePscAutoDnsEnabled(boolean value) { + + effectivePscAutoDnsEnabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The effective state of the PSC auto DNS for the instance.
+       * 
+ * + * bool effective_psc_auto_dns_enabled = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEffectivePscAutoDnsEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + effectivePscAutoDnsEnabled_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList pscAutoDnsNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePscAutoDnsNamesIsMutable() { + if (!pscAutoDnsNames_.isModifiable()) { + pscAutoDnsNames_ = new com.google.protobuf.LazyStringArrayList(pscAutoDnsNames_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the pscAutoDnsNames. + */ + public com.google.protobuf.ProtocolStringList getPscAutoDnsNamesList() { + pscAutoDnsNames_.makeImmutable(); + return pscAutoDnsNames_; + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of pscAutoDnsNames. + */ + public int getPscAutoDnsNamesCount() { + return pscAutoDnsNames_.size(); + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The pscAutoDnsNames at the given index. + */ + public java.lang.String getPscAutoDnsNames(int index) { + return pscAutoDnsNames_.get(index); + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pscAutoDnsNames at the given index. + */ + public com.google.protobuf.ByteString getPscAutoDnsNamesBytes(int index) { + return pscAutoDnsNames_.getByteString(index); + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The pscAutoDnsNames to set. + * @return This builder for chaining. + */ + public Builder setPscAutoDnsNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscAutoDnsNamesIsMutable(); + pscAutoDnsNames_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The pscAutoDnsNames to add. + * @return This builder for chaining. + */ + public Builder addPscAutoDnsNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscAutoDnsNamesIsMutable(); + pscAutoDnsNames_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
+       * 
+ * + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The pscAutoDnsNames to add. + * @return This builder for chaining. + */ + public Builder addAllPscAutoDnsNames(java.lang.Iterable values) { + ensurePscAutoDnsNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscAutoDnsNames_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Specifies the auto DNS names for the instance.
        * 
* - * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public Builder addPscAutoConnections( - int index, - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder - builderForValue) { - if (pscAutoConnectionsBuilder_ == null) { - ensurePscAutoConnectionsIsMutable(); - pscAutoConnections_.add(index, builderForValue.build()); - onChanged(); - } else { - pscAutoConnectionsBuilder_.addMessage(index, builderForValue.build()); - } + public Builder clearPscAutoDnsNames() { + pscAutoDnsNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); return this; } @@ -13129,68 +15152,70 @@ public Builder addPscAutoConnections( * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. Specifies the auto DNS names for the instance.
        * 
* - * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string psc_auto_dns_names = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The bytes of the pscAutoDnsNames to add. + * @return This builder for chaining. */ - public Builder addAllPscAutoConnections( - java.lang.Iterable< - ? extends com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig> - values) { - if (pscAutoConnectionsBuilder_ == null) { - ensurePscAutoConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscAutoConnections_); - onChanged(); - } else { - pscAutoConnectionsBuilder_.addAllMessages(values); + public Builder addPscAutoDnsNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensurePscAutoDnsNamesIsMutable(); + pscAutoDnsNames_.add(value); + bitField0_ |= 0x00000002; + onChanged(); return this; } + private boolean effectivePscAutoConnectionPolicy_; + /** * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. Indicates if the PSC auto connection policy is enabled for
+       * the instance. For older instances, this will be off by default, but for
+       * newer instances, this will be auto-enabled.
        * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The effectivePscAutoConnectionPolicy. */ - public Builder clearPscAutoConnections() { - if (pscAutoConnectionsBuilder_ == null) { - pscAutoConnections_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - pscAutoConnectionsBuilder_.clear(); - } - return this; + @java.lang.Override + public boolean getEffectivePscAutoConnectionPolicy() { + return effectivePscAutoConnectionPolicy_; } /** * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. Indicates if the PSC auto connection policy is enabled for
+       * the instance. For older instances, this will be off by default, but for
+       * newer instances, this will be auto-enabled.
        * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The effectivePscAutoConnectionPolicy to set. + * @return This builder for chaining. */ - public Builder removePscAutoConnections(int index) { - if (pscAutoConnectionsBuilder_ == null) { - ensurePscAutoConnectionsIsMutable(); - pscAutoConnections_.remove(index); - onChanged(); - } else { - pscAutoConnectionsBuilder_.remove(index); - } + public Builder setEffectivePscAutoConnectionPolicy(boolean value) { + + effectivePscAutoConnectionPolicy_ = value; + bitField0_ |= 0x00000004; + onChanged(); return this; } @@ -13198,35 +15223,48 @@ public Builder removePscAutoConnections(int index) { * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. Indicates if the PSC auto connection policy is enabled for
+       * the instance. For older instances, this will be off by default, but for
+       * newer instances, this will be auto-enabled.
        * 
* * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * bool effective_psc_auto_connection_policy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder - getPscAutoConnectionsBuilder(int index) { - return internalGetPscAutoConnectionsFieldBuilder().getBuilder(index); + public Builder clearEffectivePscAutoConnectionPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + effectivePscAutoConnectionPolicy_ = false; + onChanged(); + return this; } + private java.lang.Object serviceConnectionPolicy_ = ""; + /** * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. The PSC service connection policy name. The format is
+       * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
        * 
* - * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The serviceConnectionPolicy. */ - public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder - getPscAutoConnectionsOrBuilder(int index) { - if (pscAutoConnectionsBuilder_ == null) { - return pscAutoConnections_.get(index); + public java.lang.String getServiceConnectionPolicy() { + java.lang.Object ref = serviceConnectionPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceConnectionPolicy_ = s; + return s; } else { - return pscAutoConnectionsBuilder_.getMessageOrBuilder(index); + return (java.lang.String) ref; } } @@ -13234,20 +15272,24 @@ public Builder removePscAutoConnections(int index) { * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. The PSC service connection policy name. The format is
+       * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
        * 
* - * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The bytes for serviceConnectionPolicy. */ - public java.util.List< - ? extends com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder> - getPscAutoConnectionsOrBuilderList() { - if (pscAutoConnectionsBuilder_ != null) { - return pscAutoConnectionsBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.ByteString getServiceConnectionPolicyBytes() { + java.lang.Object ref = serviceConnectionPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceConnectionPolicy_ = b; + return b; } else { - return java.util.Collections.unmodifiableList(pscAutoConnections_); + return (com.google.protobuf.ByteString) ref; } } @@ -13255,97 +15297,89 @@ public Builder removePscAutoConnections(int index) { * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. The PSC service connection policy name. The format is
+       * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
        * 
* - * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The serviceConnectionPolicy to set. + * @return This builder for chaining. */ - public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder - addPscAutoConnectionsBuilder() { - return internalGetPscAutoConnectionsFieldBuilder() - .addBuilder( - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig - .getDefaultInstance()); + public Builder setServiceConnectionPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceConnectionPolicy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; } /** * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. The PSC service connection policy name. The format is
+       * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
        * 
* - * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder - addPscAutoConnectionsBuilder(int index) { - return internalGetPscAutoConnectionsFieldBuilder() - .addBuilder( - index, - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig - .getDefaultInstance()); + public Builder clearServiceConnectionPolicy() { + serviceConnectionPolicy_ = getDefaultInstance().getServiceConnectionPolicy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; } /** * * *
-       * Optional. Configurations for setting up PSC service automation.
+       * Output only. The PSC service connection policy name. The format is
+       * "projects/<PROJECT_ID>/regions/<REGION_ID>/serviceConnectionPolicies/<alloydb-$NETWORK-$RANDOM-scp>"
        * 
* - * - * repeated .google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig psc_auto_connections = 9 [(.google.api.field_behavior) = OPTIONAL]; + * string service_connection_policy = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The bytes for serviceConnectionPolicy to set. + * @return This builder for chaining. */ - public java.util.List< - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder> - getPscAutoConnectionsBuilderList() { - return internalGetPscAutoConnectionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig, - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder, - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder> - internalGetPscAutoConnectionsFieldBuilder() { - if (pscAutoConnectionsBuilder_ == null) { - pscAutoConnectionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig, - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfig.Builder, - com.google.cloud.alloydb.v1beta.Instance.PscAutoConnectionConfigOrBuilder>( - pscAutoConnections_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - pscAutoConnections_ = null; + public Builder setServiceConnectionPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return pscAutoConnectionsBuilder_; + checkByteStringIsUtf8(value); + serviceConnectionPolicy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) + // @@protoc_insertion_point(builder_scope:google.cloud.alloydb.v1beta.Instance.PscInstanceInfo) } - // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.PscInstanceConfig) - private static final com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig - DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.alloydb.v1beta.Instance.PscInstanceInfo) + private static final com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig(); + DEFAULT_INSTANCE = new com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo(); } - public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig getDefaultInstance() { + public static com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo 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 PscInstanceConfig parsePartialFrom( + public PscInstanceInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -13365,17 +15399,17 @@ public PscInstanceConfig 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.PscInstanceConfig getDefaultInstanceForType() { + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -18647,6 +20681,69 @@ public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig getPscInstance : pscInstanceConfig_; } + public static final int PSC_INSTANCE_INFO_FIELD_NUMBER = 46; + private com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo pscInstanceInfo_; + + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pscInstanceInfo field is set. + */ + @java.lang.Override + public boolean hasPscInstanceInfo() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscInstanceInfo. + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo getPscInstanceInfo() { + return pscInstanceInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.getDefaultInstance() + : pscInstanceInfo_; + } + + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfoOrBuilder + getPscInstanceInfoOrBuilder() { + return pscInstanceInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.getDefaultInstance() + : pscInstanceInfo_; + } + public static final int NETWORK_CONFIG_FIELD_NUMBER = 29; private com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig networkConfig_; @@ -18665,7 +20762,7 @@ public com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfig getPscInstance */ @java.lang.Override public boolean hasNetworkConfig() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -18723,13 +20820,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=1325 + * google/cloud/alloydb/v1beta/resources.proto;l=1390 * @return Whether the geminiConfig field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasGeminiConfig() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -18745,7 +20842,7 @@ public boolean hasGeminiConfig() { *
* * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1325 + * google/cloud/alloydb/v1beta/resources.proto;l=1390 * @return The geminiConfig. */ @java.lang.Override @@ -18925,7 +21022,7 @@ public com.google.cloud.alloydb.v1beta.Instance.ActivationPolicy getActivationPo */ @java.lang.Override public boolean hasConnectionPoolConfig() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -18985,7 +21082,7 @@ public com.google.cloud.alloydb.v1beta.Instance.ConnectionPoolConfig getConnecti */ @java.lang.Override public boolean hasGcaConfig() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -19122,10 +21219,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(28, getPscInstanceConfig()); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeMessage(29, getNetworkConfig()); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { output.writeMessage(33, getGeminiConfig()); } for (int i = 0; i < outboundPublicIpAddresses_.size(); i++) { @@ -19137,12 +21234,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(35, activationPolicy_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { output.writeMessage(37, getConnectionPoolConfig()); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { output.writeMessage(38, getGcaConfig()); } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(46, getPscInstanceInfo()); + } getUnknownFields().writeTo(output); } @@ -19261,10 +21361,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getPscInstanceConfig()); } - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getNetworkConfig()); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, getGeminiConfig()); } { @@ -19280,13 +21380,16 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, activationPolicy_); } - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getConnectionPoolConfig()); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getGcaConfig()); } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(46, getPscInstanceInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -19362,6 +21465,10 @@ public boolean equals(final java.lang.Object obj) { if (hasPscInstanceConfig()) { if (!getPscInstanceConfig().equals(other.getPscInstanceConfig())) return false; } + if (hasPscInstanceInfo() != other.hasPscInstanceInfo()) return false; + if (hasPscInstanceInfo()) { + if (!getPscInstanceInfo().equals(other.getPscInstanceInfo())) return false; + } if (hasNetworkConfig() != other.hasNetworkConfig()) return false; if (hasNetworkConfig()) { if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; @@ -19476,6 +21583,10 @@ public int hashCode() { hash = (37 * hash) + PSC_INSTANCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPscInstanceConfig().hashCode(); } + if (hasPscInstanceInfo()) { + hash = (37 * hash) + PSC_INSTANCE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getPscInstanceInfo().hashCode(); + } if (hasNetworkConfig()) { hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getNetworkConfig().hashCode(); @@ -19682,6 +21793,7 @@ private void maybeForceBuilderInitialization() { internalGetUpdatePolicyFieldBuilder(); internalGetClientConnectionConfigFieldBuilder(); internalGetPscInstanceConfigFieldBuilder(); + internalGetPscInstanceInfoFieldBuilder(); internalGetNetworkConfigFieldBuilder(); internalGetGeminiConfigFieldBuilder(); internalGetConnectionPoolConfigFieldBuilder(); @@ -19771,6 +21883,11 @@ public Builder clear() { pscInstanceConfigBuilder_.dispose(); pscInstanceConfigBuilder_ = null; } + pscInstanceInfo_ = null; + if (pscInstanceInfoBuilder_ != null) { + pscInstanceInfoBuilder_.dispose(); + pscInstanceInfoBuilder_ = null; + } networkConfig_ = null; if (networkConfigBuilder_ != null) { networkConfigBuilder_.dispose(); @@ -19955,28 +22072,26 @@ private void buildPartial0(com.google.cloud.alloydb.v1beta.Instance result) { to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x08000000) != 0)) { - result.networkConfig_ = - networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); + result.pscInstanceInfo_ = + pscInstanceInfoBuilder_ == null ? pscInstanceInfo_ : pscInstanceInfoBuilder_.build(); to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x10000000) != 0)) { - result.geminiConfig_ = - geminiConfigBuilder_ == null ? geminiConfig_ : geminiConfigBuilder_.build(); + result.networkConfig_ = + networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x20000000) != 0)) { - outboundPublicIpAddresses_.makeImmutable(); - result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_; + result.geminiConfig_ = + geminiConfigBuilder_ == null ? geminiConfig_ : geminiConfigBuilder_.build(); + to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x40000000) != 0)) { - result.activationPolicy_ = activationPolicy_; + outboundPublicIpAddresses_.makeImmutable(); + result.outboundPublicIpAddresses_ = outboundPublicIpAddresses_; } if (((from_bitField0_ & 0x80000000) != 0)) { - result.connectionPoolConfig_ = - connectionPoolConfigBuilder_ == null - ? connectionPoolConfig_ - : connectionPoolConfigBuilder_.build(); - to_bitField0_ |= 0x00002000; + result.activationPolicy_ = activationPolicy_; } result.bitField0_ |= to_bitField0_; } @@ -19985,9 +22100,16 @@ private void buildPartial1(com.google.cloud.alloydb.v1beta.Instance result) { int from_bitField1_ = bitField1_; int to_bitField0_ = 0; if (((from_bitField1_ & 0x00000001) != 0)) { - result.gcaConfig_ = gcaConfigBuilder_ == null ? gcaConfig_ : gcaConfigBuilder_.build(); + result.connectionPoolConfig_ = + connectionPoolConfigBuilder_ == null + ? connectionPoolConfig_ + : connectionPoolConfigBuilder_.build(); to_bitField0_ |= 0x00004000; } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.gcaConfig_ = gcaConfigBuilder_ == null ? gcaConfig_ : gcaConfigBuilder_.build(); + to_bitField0_ |= 0x00008000; + } result.bitField0_ |= to_bitField0_; } @@ -20119,6 +22241,9 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance other) { if (other.hasPscInstanceConfig()) { mergePscInstanceConfig(other.getPscInstanceConfig()); } + if (other.hasPscInstanceInfo()) { + mergePscInstanceInfo(other.getPscInstanceInfo()); + } if (other.hasNetworkConfig()) { mergeNetworkConfig(other.getNetworkConfig()); } @@ -20128,7 +22253,7 @@ public Builder mergeFrom(com.google.cloud.alloydb.v1beta.Instance other) { if (!other.outboundPublicIpAddresses_.isEmpty()) { if (outboundPublicIpAddresses_.isEmpty()) { outboundPublicIpAddresses_ = other.outboundPublicIpAddresses_; - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; } else { ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.addAll(other.outboundPublicIpAddresses_); @@ -20373,14 +22498,14 @@ public Builder mergeFrom( { input.readMessage( internalGetNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; break; } // case 234 case 266: { input.readMessage( internalGetGeminiConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; break; } // case 266 case 274: @@ -20393,23 +22518,30 @@ public Builder mergeFrom( case 280: { activationPolicy_ = input.readEnum(); - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; break; } // case 280 case 298: { input.readMessage( internalGetConnectionPoolConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; break; } // case 298 case 306: { input.readMessage( internalGetGcaConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; break; } // case 306 + case 370: + { + input.readMessage( + internalGetPscInstanceInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 370 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -25218,6 +27350,233 @@ public Builder clearPscInstanceConfig() { return pscInstanceConfigBuilder_; } + private com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo pscInstanceInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfoOrBuilder> + pscInstanceInfoBuilder_; + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pscInstanceInfo field is set. + */ + public boolean hasPscInstanceInfo() { + return ((bitField0_ & 0x08000000) != 0); + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscInstanceInfo. + */ + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo getPscInstanceInfo() { + if (pscInstanceInfoBuilder_ == null) { + return pscInstanceInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.getDefaultInstance() + : pscInstanceInfo_; + } else { + return pscInstanceInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPscInstanceInfo( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo value) { + if (pscInstanceInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pscInstanceInfo_ = value; + } else { + pscInstanceInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPscInstanceInfo( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.Builder builderForValue) { + if (pscInstanceInfoBuilder_ == null) { + pscInstanceInfo_ = builderForValue.build(); + } else { + pscInstanceInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePscInstanceInfo( + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo value) { + if (pscInstanceInfoBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0) + && pscInstanceInfo_ != null + && pscInstanceInfo_ + != com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.getDefaultInstance()) { + getPscInstanceInfoBuilder().mergeFrom(value); + } else { + pscInstanceInfo_ = value; + } + } else { + pscInstanceInfoBuilder_.mergeFrom(value); + } + if (pscInstanceInfo_ != null) { + bitField0_ |= 0x08000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPscInstanceInfo() { + bitField0_ = (bitField0_ & ~0x08000000); + pscInstanceInfo_ = null; + if (pscInstanceInfoBuilder_ != null) { + pscInstanceInfoBuilder_.dispose(); + pscInstanceInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.Builder + getPscInstanceInfoBuilder() { + bitField0_ |= 0x08000000; + onChanged(); + return internalGetPscInstanceInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfoOrBuilder + getPscInstanceInfoOrBuilder() { + if (pscInstanceInfoBuilder_ != null) { + return pscInstanceInfoBuilder_.getMessageOrBuilder(); + } else { + return pscInstanceInfo_ == null + ? com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.getDefaultInstance() + : pscInstanceInfo_; + } + } + + /** + * + * + *
+     * Output only. Information about the Private Service Connect (PSC) for the
+     * instance.
+     * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfoOrBuilder> + internalGetPscInstanceInfoFieldBuilder() { + if (pscInstanceInfoBuilder_ == null) { + pscInstanceInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo.Builder, + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfoOrBuilder>( + getPscInstanceInfo(), getParentForChildren(), isClean()); + pscInstanceInfo_ = null; + } + return pscInstanceInfoBuilder_; + } + private com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig networkConfig_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig, @@ -25239,7 +27598,7 @@ public Builder clearPscInstanceConfig() { * @return Whether the networkConfig field is set. */ public boolean hasNetworkConfig() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** @@ -25286,7 +27645,7 @@ public Builder setNetworkConfig( } else { networkConfigBuilder_.setMessage(value); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -25309,7 +27668,7 @@ public Builder setNetworkConfig( } else { networkConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -25328,7 +27687,7 @@ public Builder setNetworkConfig( public Builder mergeNetworkConfig( com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig value) { if (networkConfigBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) + if (((bitField0_ & 0x10000000) != 0) && networkConfig_ != null && networkConfig_ != com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig @@ -25341,7 +27700,7 @@ public Builder mergeNetworkConfig( networkConfigBuilder_.mergeFrom(value); } if (networkConfig_ != null) { - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); } return this; @@ -25359,7 +27718,7 @@ public Builder mergeNetworkConfig( *
*/ public Builder clearNetworkConfig() { - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x10000000); networkConfig_ = null; if (networkConfigBuilder_ != null) { networkConfigBuilder_.dispose(); @@ -25382,7 +27741,7 @@ public Builder clearNetworkConfig() { */ public com.google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.Builder getNetworkConfigBuilder() { - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return internalGetNetworkConfigFieldBuilder().getBuilder(); } @@ -25457,12 +27816,12 @@ public Builder clearNetworkConfig() { *
* * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1325 + * google/cloud/alloydb/v1beta/resources.proto;l=1390 * @return Whether the geminiConfig field is set. */ @java.lang.Deprecated public boolean hasGeminiConfig() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x20000000) != 0); } /** @@ -25478,7 +27837,7 @@ public boolean hasGeminiConfig() { *
* * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1325 + * google/cloud/alloydb/v1beta/resources.proto;l=1390 * @return The geminiConfig. */ @java.lang.Deprecated @@ -25514,7 +27873,7 @@ public Builder setGeminiConfig(com.google.cloud.alloydb.v1beta.GeminiInstanceCon } else { geminiConfigBuilder_.setMessage(value); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -25539,7 +27898,7 @@ public Builder setGeminiConfig( } else { geminiConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -25559,7 +27918,7 @@ public Builder setGeminiConfig( @java.lang.Deprecated public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1beta.GeminiInstanceConfig value) { if (geminiConfigBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) + if (((bitField0_ & 0x20000000) != 0) && geminiConfig_ != null && geminiConfig_ != com.google.cloud.alloydb.v1beta.GeminiInstanceConfig.getDefaultInstance()) { @@ -25571,7 +27930,7 @@ public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1beta.GeminiInstanceC geminiConfigBuilder_.mergeFrom(value); } if (geminiConfig_ != null) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); } return this; @@ -25591,7 +27950,7 @@ public Builder mergeGeminiConfig(com.google.cloud.alloydb.v1beta.GeminiInstanceC */ @java.lang.Deprecated public Builder clearGeminiConfig() { - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x20000000); geminiConfig_ = null; if (geminiConfigBuilder_ != null) { geminiConfigBuilder_.dispose(); @@ -25615,7 +27974,7 @@ public Builder clearGeminiConfig() { */ @java.lang.Deprecated public com.google.cloud.alloydb.v1beta.GeminiInstanceConfig.Builder getGeminiConfigBuilder() { - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return internalGetGeminiConfigFieldBuilder().getBuilder(); } @@ -25681,7 +28040,7 @@ private void ensureOutboundPublicIpAddressesIsMutable() { outboundPublicIpAddresses_ = new com.google.protobuf.LazyStringArrayList(outboundPublicIpAddresses_); } - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; } /** @@ -25776,7 +28135,7 @@ public Builder setOutboundPublicIpAddresses(int index, java.lang.String value) { } ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.set(index, value); - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -25801,7 +28160,7 @@ public Builder addOutboundPublicIpAddresses(java.lang.String value) { } ensureOutboundPublicIpAddressesIsMutable(); outboundPublicIpAddresses_.add(value); - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -25823,7 +28182,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_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -25843,7 +28202,7 @@ public Builder addAllOutboundPublicIpAddresses(java.lang.Iterable */ public Builder clearConnectionPoolConfig() { - bitField0_ = (bitField0_ & ~0x80000000); + bitField1_ = (bitField1_ & ~0x00000001); connectionPoolConfig_ = null; if (connectionPoolConfigBuilder_ != null) { connectionPoolConfigBuilder_.dispose(); @@ -26177,7 +28536,7 @@ public Builder clearConnectionPoolConfig() { */ public com.google.cloud.alloydb.v1beta.Instance.ConnectionPoolConfig.Builder getConnectionPoolConfigBuilder() { - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; onChanged(); return internalGetConnectionPoolConfigFieldBuilder().getBuilder(); } @@ -26253,7 +28612,7 @@ public Builder clearConnectionPoolConfig() { * @return Whether the gcaConfig field is set. */ public boolean hasGcaConfig() { - return ((bitField1_ & 0x00000001) != 0); + return ((bitField1_ & 0x00000002) != 0); } /** @@ -26299,7 +28658,7 @@ public Builder setGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig va } else { gcaConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -26322,7 +28681,7 @@ public Builder setGcaConfig( } else { gcaConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -26340,7 +28699,7 @@ public Builder setGcaConfig( */ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig value) { if (gcaConfigBuilder_ == null) { - if (((bitField1_ & 0x00000001) != 0) + if (((bitField1_ & 0x00000002) != 0) && gcaConfig_ != null && gcaConfig_ != com.google.cloud.alloydb.v1beta.GCAInstanceConfig.getDefaultInstance()) { @@ -26352,7 +28711,7 @@ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig gcaConfigBuilder_.mergeFrom(value); } if (gcaConfig_ != null) { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; onChanged(); } return this; @@ -26370,7 +28729,7 @@ public Builder mergeGcaConfig(com.google.cloud.alloydb.v1beta.GCAInstanceConfig * */ public Builder clearGcaConfig() { - bitField1_ = (bitField1_ & ~0x00000001); + bitField1_ = (bitField1_ & ~0x00000002); gcaConfig_ = null; if (gcaConfigBuilder_ != null) { gcaConfigBuilder_.dispose(); @@ -26392,7 +28751,7 @@ public Builder clearGcaConfig() { * */ public com.google.cloud.alloydb.v1beta.GCAInstanceConfig.Builder getGcaConfigBuilder() { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; 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 ba02ac869473..fafdceaf22a4 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 @@ -1188,6 +1188,52 @@ java.lang.String getAnnotationsOrDefault( com.google.cloud.alloydb.v1beta.Instance.PscInstanceConfigOrBuilder getPscInstanceConfigOrBuilder(); + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the pscInstanceInfo field is set. + */ + boolean hasPscInstanceInfo(); + + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscInstanceInfo. + */ + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfo getPscInstanceInfo(); + + /** + * + * + *
+   * Output only. Information about the Private Service Connect (PSC) for the
+   * instance.
+   * 
+ * + * + * .google.cloud.alloydb.v1beta.Instance.PscInstanceInfo psc_instance_info = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.alloydb.v1beta.Instance.PscInstanceInfoOrBuilder getPscInstanceInfoOrBuilder(); + /** * * @@ -1245,7 +1291,7 @@ java.lang.String getAnnotationsOrDefault( * * * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1325 + * google/cloud/alloydb/v1beta/resources.proto;l=1390 * @return Whether the geminiConfig field is set. */ @java.lang.Deprecated @@ -1264,7 +1310,7 @@ java.lang.String getAnnotationsOrDefault( * * * @deprecated google.cloud.alloydb.v1beta.Instance.gemini_config is deprecated. See - * google/cloud/alloydb/v1beta/resources.proto;l=1325 + * google/cloud/alloydb/v1beta/resources.proto;l=1390 * @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 66777c5d35ae..85ff547cd0dc 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 @@ -196,6 +196,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -500,7 +504,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\"\242)\n" + + "\006source\"\371.\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" @@ -543,17 +547,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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\022X\n" - + "\016network_config\030\035 \001(\0132;.google.cloud.alloydb.v1b" - + "eta.Instance.InstanceNetworkConfigB\003\340A\001\022O\n\r" - + "gemini_config\030! \001(\01321.google.cloud.al" - + "loydb.v1beta.GeminiInstanceConfigB\005\030\001\340A\001\0221\n" + + " \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" + "\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.alloydb.v1beta.Instance.ConnectionPoolConfigB\003\340A\001\022G\n\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" + "MachineConfig\022\021\n" @@ -613,10 +619,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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\351\002\n" + + "\027consumer_network_status\030\005 \001(\tB\003\340A\003\032\264\005\n" + "\021PscInstanceConfig\022Q\n" + "\027service_attachment_link\030\001 \001(\tB0\340A\003\372A*\n" + "(compute.googleapis.com/ServiceAttachment\022&\n" @@ -624,11 +631,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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.alloyd" - + "b.v1beta.Instance.PscAutoConnectionConfigB\003\340A\001\032\356\002\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" + + "\034PscAutoConnectionPolicyState\0220\n" + + ",PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED\020\000\022\013\n" + + "\007ENABLED\020\001\022\014\n" + + "\010DISABLED\020\002\032\272\001\n" + + "\017PscInstanceInfo\022+\n" + + "\036effective_psc_auto_dns_enabled\030\001 \001(\010B\003\340A\003\022\037\n" + + "\022psc_auto_dns_names\030\002 \003(\tB\003\340A\003\0221\n" + + "$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.InstanceNetworkConfig.AuthorizedNetworkB\003\340A\001\022\035\n" + + "\034authorized_external_networks\030\001 \003(\0132M." + + "google.cloud.alloydb.v1beta.Instance.Ins" + + "tanceNetworkConfig.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" @@ -639,8 +661,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.Instance.ConnectionPoolConfig.FlagsEntryB\003\340A\001\022\031\n" + + " \003(\0132E.google.cloud.alloydb.v1beta.Insta" + + "nce.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" @@ -672,14 +694,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020AvailabilityType\022!\n" + "\035AVAILABILITY_TYPE_UNSPECIFIED\020\000\022\t\n" + "\005ZONAL\020\001\022\014\n" - + "\010REGIONAL\020\002\"L\n" + + "\010REGIONAL\020\002\"v\n" + + "\017PscAutoDnsState\022\"\n" + + "\036PSC_AUTO_DNS_STATE_UNSPECIFIED\020\000\022\036\n" + + "\032PSC_AUTO_DNS_STATE_ENABLED\020\001\022\037\n" + + "\033PSC_AUTO_DNS_STATE_DISABLED\020\002\"L\n" + "\020ActivationPolicy\022!\n" + "\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}/loca" - + "tions/{location}/clusters/{cluster}/instances/{instance}*" - + "\tinstances2\010instanceR\001\001\"\352\002\n" + + "\037alloydb.googleapis.com/Instance\022Oprojects/{projec" + + "t}/locations/{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" + "ip_address\030\002 \001(\tB\003\340A\003\022&\n" @@ -687,10 +713,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tB\013\340A\003\342\214\317\327\010\002\010\002\022$\n" + "\025pem_certificate_chain\030\003 \003(\tB\005\030\001\340A\003\022\031\n" + "\014instance_uid\030\004 \001(\tB\003\340A\003\022\031\n" - + "\014psc_dns_name\030\006 \001(\tB\003\340A\003:\254\001\352A\250\001\n" - + "%alloydb.googleapis.com/ConnectionInfo\022^projects/{project}/locations/{location}/cl" - + "usters/{cluster}/instances/{instance}/co" - + "nnectionInfo*\017connectionInfos2\016connectionInfo\"\251\r\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" + "\006Backup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" @@ -722,8 +749,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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" @@ -749,32 +776,33 @@ 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\0228pro" - + "jects/{project}/locations/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\220" + + "\035alloydb.googleapis.com/Backup\0228proj" + + "ects/{project}/locations/{location}/backups/{backup}*\007backups2\006backupR\001\001\"\220" + "\t\n" + "\025SupportedDatabaseFlag\022d\n" - + "\023string_restrictions\030\007 \001(\0132E.google.cloud.alloydb.v1beta.S" - + "upportedDatabaseFlag.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.Su" + + "pportedDatabaseFlag.StringRestrictionsH\000\022f\n" + + "\024integer_restrictions\030\010 \001(\0132F.google." + + "cloud.alloydb.v1beta.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.allo" - + "ydb.v1beta.SupportedDatabaseFlag.ValueType\022\037\n" + + "value_type\030\003 \001(\0162<.google.cloud.alloy" + + "db.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.g" - + "oogle.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope\032,\n" + + "\005scope\030\t \001(\01628.go" + + "ogle.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" @@ -786,9 +814,9 @@ 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/{pr" - + "oject}/locations/{location}/flags/{flag}" - + "*\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n" + + ",alloydb.googleapis.com/SupportedDatabaseFlag\0224projects/{pro" + + "ject}/locations/{location}/flags/{flag}*" + + "\026supportedDatabaseFlags2\025supportedDatabaseFlagB\016\n" + "\014restrictionsB\023\n" + "\021recommended_value\"\376\002\n" + "\004User\022\021\n" @@ -802,9 +830,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/{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" @@ -814,8 +841,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/{" - + "location}/clusters/{cluster}/databases/{database}*" + + "\037alloydb.googleapis.com/Database\022Oprojects/{project}/locations/{l" + + "ocation}/clusters/{cluster}/databases/{database}*" + "\tdatabases2\010databaseR\001\001B\027\n" + "\025_is_template_database*^\n" + "\014InstanceView\022\035\n" @@ -838,18 +865,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\016ResourcesProtoP\001Z9cloud" - + ".google.com/go/alloydb/apiv1beta/alloydb" - + "pb;alloydbpb\252\002\033Google.Cloud.AlloyDb.V1Be" - + "ta\312\002\033Google\\Cloud\\AlloyDb\\V1beta\352\002\036Google::Cloud::AlloyDB::V1beta\352A\246\001\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\022zproject" - + "s/{project}/locations/{location}/keyRing" - + "s/{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}/locations/{location}/keyR" - + "ings/{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( @@ -1176,6 +1204,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ClientConnectionConfig", "SatisfiesPzs", "PscInstanceConfig", + "PscInstanceInfo", "NetworkConfig", "GeminiConfig", "OutboundPublicIpAddresses", @@ -1278,9 +1307,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PscDnsName", "PscInterfaceConfigs", "PscAutoConnections", + "PscAutoDnsState", + "PscAutoConnectionPolicyState", }); - internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_descriptor = + 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_PscInstanceInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_alloydb_v1beta_Instance_PscInstanceInfo_descriptor, + new java.lang.String[] { + "EffectivePscAutoDnsEnabled", + "PscAutoDnsNames", + "EffectivePscAutoConnectionPolicy", + "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_InstanceNetworkConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_InstanceNetworkConfig_descriptor, @@ -1301,7 +1343,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(11); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(12); internal_static_google_cloud_alloydb_v1beta_Instance_ConnectionPoolConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_ConnectionPoolConfig_descriptor, @@ -1318,7 +1360,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(12); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(13); internal_static_google_cloud_alloydb_v1beta_Instance_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_LabelsEntry_descriptor, @@ -1326,7 +1368,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(13); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(14); internal_static_google_cloud_alloydb_v1beta_Instance_DatabaseFlagsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_DatabaseFlagsEntry_descriptor, @@ -1334,7 +1376,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(14); + internal_static_google_cloud_alloydb_v1beta_Instance_descriptor.getNestedType(15); internal_static_google_cloud_alloydb_v1beta_Instance_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_alloydb_v1beta_Instance_AnnotationsEntry_descriptor, @@ -1353,6 +1395,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PemCertificateChain", "InstanceUid", "PscDnsName", + "PscAutoDnsName", }); internal_static_google_cloud_alloydb_v1beta_Backup_descriptor = getDescriptor().getMessageType(15); 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 7b3ef0259b13..31cbb902f9ab 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 @@ -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. @@ -1006,6 +1006,20 @@ message Instance { // PscInstanceConfig contains PSC related configuration at an // instance level. message PscInstanceConfig { + // The state of the PSC auto connection policy. + enum PscAutoConnectionPolicyState { + // The state is unspecified. For old instances, this means the PSC auto + // connection is disabled. For new instances, this means the PSC auto + // connection is enabled by default. + PSC_AUTO_CONNECTION_POLICY_STATE_UNSPECIFIED = 0; + + // Enables the PSC auto connection for the instance. + ENABLED = 1; + + // Disables the PSC auto connection for the instance. + DISABLED = 2; + } + // Output only. The service attachment created when Private // Service Connect (PSC) is enabled for the instance. // The name of the resource will be in the format of @@ -1036,6 +1050,37 @@ message Instance { // Optional. Configurations for setting up PSC service automation. repeated PscAutoConnectionConfig psc_auto_connections = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for setting up PSC auto DNS for the instance. + PscAutoDnsState psc_auto_dns_state = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for setting up PSC auto connection for the + // instance. + PscAutoConnectionPolicyState psc_auto_connection_policy_state = 13 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Information about the Private Service Connect (PSC) for the instance. + message PscInstanceInfo { + // Output only. The effective state of the PSC auto DNS for the instance. + bool effective_psc_auto_dns_enabled = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Specifies the auto DNS names for the instance. + repeated string psc_auto_dns_names = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates if the PSC auto connection policy is enabled for + // the instance. For older instances, this will be off by default, but for + // newer instances, this will be auto-enabled. + bool effective_psc_auto_connection_policy = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The PSC service connection policy name. The format is + // "projects//regions//serviceConnectionPolicies/" + string service_connection_policy = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Metadata related to instance-level network configuration. @@ -1165,6 +1210,21 @@ message Instance { REGIONAL = 2; } + // The state of the PSC auto DNS. + enum PscAutoDnsState { + // The state is unspecified. For old instances, this means the PSC auto DNS + // is disabled. For new instances, this means the PSC auto DNS is enabled + // by default. Use `effective_psc_auto_dns_enabled` to check the + // effective state of the PSC auto DNS. + PSC_AUTO_DNS_STATE_UNSPECIFIED = 0; + + // Enables the PSC auto DNS for the instance. + PSC_AUTO_DNS_STATE_ENABLED = 1; + + // Disables the PSC auto DNS for the instance. + PSC_AUTO_DNS_STATE_DISABLED = 2; + } + // Specifies whether an instance needs to spin up. enum ActivationPolicy { // The policy is not specified. @@ -1317,6 +1377,11 @@ message Instance { PscInstanceConfig psc_instance_config = 28 [(google.api.field_behavior) = OPTIONAL]; + // Output only. Information about the Private Service Connect (PSC) for the + // instance. + PscInstanceInfo psc_instance_info = 46 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Instance-level network configuration. InstanceNetworkConfig network_config = 29 [(google.api.field_behavior) = OPTIONAL]; @@ -1388,6 +1453,10 @@ message ConnectionInfo { // Output only. The DNS name to use with PSC for the Instance. string psc_dns_name = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Specifies the DNS name to use with PSC service automation for + // the Instance. + string psc_auto_dns_name = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Message describing Backup object diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReport.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReport.java index d6236f01d10f..ba9bffcbb6fa 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReport.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReport.java @@ -559,7 +559,7 @@ public com.google.cloud.auditmanager.v1.DestinationDetails getDestinationDetails * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @return The complianceStandard. */ @java.lang.Override @@ -590,7 +590,7 @@ public java.lang.String getComplianceStandard() { * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @return The bytes for complianceStandard. */ @java.lang.Override @@ -2309,7 +2309,7 @@ public Builder clearDestinationDetails() { * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @return The complianceStandard. */ @java.lang.Deprecated @@ -2339,7 +2339,7 @@ public java.lang.String getComplianceStandard() { * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @return The bytes for complianceStandard. */ @java.lang.Deprecated @@ -2369,7 +2369,7 @@ public com.google.protobuf.ByteString getComplianceStandardBytes() { * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @param value The complianceStandard to set. * @return This builder for chaining. */ @@ -2398,7 +2398,7 @@ public Builder setComplianceStandard(java.lang.String value) { * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2423,7 +2423,7 @@ public Builder clearComplianceStandard() { * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @param value The bytes for complianceStandard to set. * @return This builder for chaining. */ diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReportOrBuilder.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReportOrBuilder.java index 636061fd2163..b034f0896ab3 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReportOrBuilder.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/AuditReportOrBuilder.java @@ -189,7 +189,7 @@ public interface AuditReportOrBuilder * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @return The complianceStandard. */ @java.lang.Deprecated @@ -209,7 +209,7 @@ public interface AuditReportOrBuilder * * * @deprecated google.cloud.auditmanager.v1.AuditReport.compliance_standard is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=747 + * google/cloud/auditmanager/v1/auditmanager.proto;l=758 * @return The bytes for complianceStandard. */ @java.lang.Deprecated diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequest.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequest.java index 3967f5c193f8..ae86fda107ca 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequest.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequest.java @@ -588,8 +588,19 @@ public com.google.protobuf.ByteString getComplianceFrameworkBytes() { * * *
-   * Optional. If `true`, only validate the request and don't generate the audit
-   * report.
+   * Optional. If `true`, only validates the request and does not generate the
+   * audit report. This executes standard request validation (such as schema,
+   * framework existence, scope, and IAM checks) and skips the apply phase.
+   *
+   * Use this field for the following purposes:
+   * * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run
+   * dry-run mutations (e.g., `terraform plan`) without creating real
+   * resources or incurring costs.
+   * * **User Interface Validation**: Enable real-time form and permission
+   * validation in custom UIs before submitting requests.
+   * * **CI/CD & Automation**: Test your scripts, permissions, and parameters
+   * safely without triggering expensive Long-Running Operations (LROs) or
+   * consuming resource quotas.
    * 
* * bool validate_only = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1742,8 +1753,19 @@ public Builder setComplianceFrameworkBytes(com.google.protobuf.ByteString value) * * *
-     * Optional. If `true`, only validate the request and don't generate the audit
-     * report.
+     * Optional. If `true`, only validates the request and does not generate the
+     * audit report. This executes standard request validation (such as schema,
+     * framework existence, scope, and IAM checks) and skips the apply phase.
+     *
+     * Use this field for the following purposes:
+     * * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run
+     * dry-run mutations (e.g., `terraform plan`) without creating real
+     * resources or incurring costs.
+     * * **User Interface Validation**: Enable real-time form and permission
+     * validation in custom UIs before submitting requests.
+     * * **CI/CD & Automation**: Test your scripts, permissions, and parameters
+     * safely without triggering expensive Long-Running Operations (LROs) or
+     * consuming resource quotas.
      * 
* * bool validate_only = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1759,8 +1781,19 @@ public boolean getValidateOnly() { * * *
-     * Optional. If `true`, only validate the request and don't generate the audit
-     * report.
+     * Optional. If `true`, only validates the request and does not generate the
+     * audit report. This executes standard request validation (such as schema,
+     * framework existence, scope, and IAM checks) and skips the apply phase.
+     *
+     * Use this field for the following purposes:
+     * * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run
+     * dry-run mutations (e.g., `terraform plan`) without creating real
+     * resources or incurring costs.
+     * * **User Interface Validation**: Enable real-time form and permission
+     * validation in custom UIs before submitting requests.
+     * * **CI/CD & Automation**: Test your scripts, permissions, and parameters
+     * safely without triggering expensive Long-Running Operations (LROs) or
+     * consuming resource quotas.
      * 
* * bool validate_only = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1780,8 +1813,19 @@ public Builder setValidateOnly(boolean value) { * * *
-     * Optional. If `true`, only validate the request and don't generate the audit
-     * report.
+     * Optional. If `true`, only validates the request and does not generate the
+     * audit report. This executes standard request validation (such as schema,
+     * framework existence, scope, and IAM checks) and skips the apply phase.
+     *
+     * Use this field for the following purposes:
+     * * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run
+     * dry-run mutations (e.g., `terraform plan`) without creating real
+     * resources or incurring costs.
+     * * **User Interface Validation**: Enable real-time form and permission
+     * validation in custom UIs before submitting requests.
+     * * **CI/CD & Automation**: Test your scripts, permissions, and parameters
+     * safely without triggering expensive Long-Running Operations (LROs) or
+     * consuming resource quotas.
      * 
* * bool validate_only = 8 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequestOrBuilder.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequestOrBuilder.java index aa7b92623845..90571ca5df8f 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequestOrBuilder.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/GenerateAuditReportRequestOrBuilder.java @@ -209,8 +209,19 @@ public interface GenerateAuditReportRequestOrBuilder * * *
-   * Optional. If `true`, only validate the request and don't generate the audit
-   * report.
+   * Optional. If `true`, only validates the request and does not generate the
+   * audit report. This executes standard request validation (such as schema,
+   * framework existence, scope, and IAM checks) and skips the apply phase.
+   *
+   * Use this field for the following purposes:
+   * * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run
+   * dry-run mutations (e.g., `terraform plan`) without creating real
+   * resources or incurring costs.
+   * * **User Interface Validation**: Enable real-time form and permission
+   * validation in custom UIs before submitting requests.
+   * * **CI/CD & Automation**: Test your scripts, permissions, and parameters
+   * safely without triggering expensive Long-Running Operations (LROs) or
+   * consuming resource quotas.
    * 
* * bool validate_only = 8 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatus.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatus.java index 86e348e79295..4ad2343346a7 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatus.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatus.java @@ -410,7 +410,7 @@ public com.google.cloud.auditmanager.v1.EnrollmentOrBuilder getEnrollmentOrBuild * bool enrolled = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.cloud.auditmanager.v1.ResourceEnrollmentStatus.enrolled is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=682 + * google/cloud/auditmanager/v1/auditmanager.proto;l=693 * @return The enrolled. */ @java.lang.Override @@ -1319,7 +1319,7 @@ public com.google.cloud.auditmanager.v1.EnrollmentOrBuilder getEnrollmentOrBuild * * * @deprecated google.cloud.auditmanager.v1.ResourceEnrollmentStatus.enrolled is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=682 + * google/cloud/auditmanager/v1/auditmanager.proto;l=693 * @return The enrolled. */ @java.lang.Override @@ -1340,7 +1340,7 @@ public boolean getEnrolled() { * * * @deprecated google.cloud.auditmanager.v1.ResourceEnrollmentStatus.enrolled is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=682 + * google/cloud/auditmanager/v1/auditmanager.proto;l=693 * @param value The enrolled to set. * @return This builder for chaining. */ @@ -1365,7 +1365,7 @@ public Builder setEnrolled(boolean value) { * * * @deprecated google.cloud.auditmanager.v1.ResourceEnrollmentStatus.enrolled is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=682 + * google/cloud/auditmanager/v1/auditmanager.proto;l=693 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatusOrBuilder.java b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatusOrBuilder.java index 6886e551ccb2..c598c8bbe303 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatusOrBuilder.java +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/java/com/google/cloud/auditmanager/v1/ResourceEnrollmentStatusOrBuilder.java @@ -119,7 +119,7 @@ public interface ResourceEnrollmentStatusOrBuilder * bool enrolled = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * @deprecated google.cloud.auditmanager.v1.ResourceEnrollmentStatus.enrolled is deprecated. See - * google/cloud/auditmanager/v1/auditmanager.proto;l=682 + * google/cloud/auditmanager/v1/auditmanager.proto;l=693 * @return The enrolled. */ @java.lang.Deprecated diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/proto/google/cloud/auditmanager/v1/auditmanager.proto b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/proto/google/cloud/auditmanager/v1/auditmanager.proto index 446a25ff6738..4a9f789d0359 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/proto/google/cloud/auditmanager/v1/auditmanager.proto +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/src/main/proto/google/cloud/auditmanager/v1/auditmanager.proto @@ -367,8 +367,19 @@ message GenerateAuditReportRequest { // `NIST_800_53`. string compliance_framework = 5 [(google.api.field_behavior) = REQUIRED]; - // Optional. If `true`, only validate the request and don't generate the audit - // report. + // Optional. If `true`, only validates the request and does not generate the + // audit report. This executes standard request validation (such as schema, + // framework existence, scope, and IAM checks) and skips the apply phase. + // + // Use this field for the following purposes: + // * **Infrastructure as Code (IaC)**: Allow tools like Terraform to run + // dry-run mutations (e.g., `terraform plan`) without creating real + // resources or incurring costs. + // * **User Interface Validation**: Enable real-time form and permission + // validation in custom UIs before submitting requests. + // * **CI/CD & Automation**: Test your scripts, permissions, and parameters + // safely without triggering expensive Long-Running Operations (LROs) or + // consuming resource quotas. bool validate_only = 8 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java index e63d755a4311..387d8400aab0 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java @@ -463,6 +463,7 @@ public final UnaryCallable createWriteStr * .setTraceId("traceId-1067401920") * .putAllMissingValueInterpretations( * new HashMap()) + * .setClientStats(ClientStats.newBuilder().build()) * .build(); * bidiStream.send(request); * for (AppendRowsResponse response : bidiStream) { diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.storage.v1/reflect-config.json b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.storage.v1/reflect-config.json index 7ffc1c980c55..17b0eb4e3a86 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.storage.v1/reflect-config.json +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.storage.v1/reflect-config.json @@ -746,6 +746,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.bigquery.storage.v1.ClientStats", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1.ClientStats$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1.ClientStats$RequestStats", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1.ClientStats$RequestStats$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1.ClientStats$WindowStats", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.bigquery.storage.v1.ClientStats$WindowStats$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest", "queryAllDeclaredConstructors": true, diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java index 8ffcc57baba2..04f4a8032727 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java @@ -197,6 +197,7 @@ public void readRowsTest() throws Exception { .setStats(StreamStats.newBuilder().build()) .setThrottleState(ThrottleState.newBuilder().build()) .setUncompressedByteSize(-2094376525) + .setTotalEstimatedRowCount(-1623220052) .build(); mockBigQueryRead.addResponse(expectedResponse); ReadRowsRequest request = diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java index 005b8b0ab0dd..7c0a743041b2 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java @@ -191,6 +191,7 @@ public void appendRowsTest() throws Exception { .setTraceId("traceId-1067401920") .putAllMissingValueInterpretations( new HashMap()) + .setClientStats(ClientStats.newBuilder().build()) .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); @@ -220,6 +221,7 @@ public void appendRowsExceptionTest() throws Exception { .setTraceId("traceId-1067401920") .putAllMissingValueInterpretations( new HashMap()) + .setClientStats(ClientStats.newBuilder().build()) .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java index 7a8d773e1a10..067073d5ffd8 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java @@ -31,7 +31,7 @@ * switching table destinations. You can also switch table destinations within * the same connection for the default stream. * - * The size of a single AppendRowsRequest must be less than 10 MB in size. + * The size of a single AppendRowsRequest must be less than 20 MB in size. * Requests larger than this return an error, typically `INVALID_ARGUMENT`. * * @@ -3342,6 +3342,65 @@ public int getDefaultMissingValueInterpretationValue() { : result; } + public static final int CLIENT_STATS_FIELD_NUMBER = 9; + private com.google.cloud.bigquery.storage.v1.ClientStats clientStats_; + + /** + * + * + *
+   * Optional. Stats and telemetry data gathered on the client side.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clientStats field is set. + */ + @java.lang.Override + public boolean hasClientStats() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Stats and telemetry data gathered on the client side.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clientStats. + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats getClientStats() { + return clientStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.getDefaultInstance() + : clientStats_; + } + + /** + * + * + *
+   * Optional. Stats and telemetry data gathered on the client side.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStatsOrBuilder getClientStatsOrBuilder() { + return clientStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.getDefaultInstance() + : clientStats_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3390,6 +3449,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(8, defaultMissingValueInterpretation_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getClientStats()); + } getUnknownFields().writeTo(output); } @@ -3439,6 +3501,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeEnumSize( 8, defaultMissingValueInterpretation_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getClientStats()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3465,6 +3530,10 @@ public boolean equals(final java.lang.Object obj) { .equals(other.internalGetMissingValueInterpretations())) return false; if (defaultMissingValueInterpretation_ != other.defaultMissingValueInterpretation_) return false; + if (hasClientStats() != other.hasClientStats()) return false; + if (hasClientStats()) { + if (!getClientStats().equals(other.getClientStats())) return false; + } if (!getRowsCase().equals(other.getRowsCase())) return false; switch (rowsCase_) { case 4: @@ -3501,6 +3570,10 @@ public int hashCode() { } hash = (37 * hash) + DEFAULT_MISSING_VALUE_INTERPRETATION_FIELD_NUMBER; hash = (53 * hash) + defaultMissingValueInterpretation_; + if (hasClientStats()) { + hash = (37 * hash) + CLIENT_STATS_FIELD_NUMBER; + hash = (53 * hash) + getClientStats().hashCode(); + } switch (rowsCase_) { case 4: hash = (37 * hash) + PROTO_ROWS_FIELD_NUMBER; @@ -3626,7 +3699,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * switching table destinations. You can also switch table destinations within * the same connection for the default stream. * - * The size of a single AppendRowsRequest must be less than 10 MB in size. + * The size of a single AppendRowsRequest must be less than 20 MB in size. * Requests larger than this return an error, typically `INVALID_ARGUMENT`. * * @@ -3686,6 +3759,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetOffsetFieldBuilder(); + internalGetClientStatsFieldBuilder(); } } @@ -3708,6 +3782,11 @@ public Builder clear() { traceId_ = ""; internalGetMutableMissingValueInterpretations().clear(); defaultMissingValueInterpretation_ = 0; + clientStats_ = null; + if (clientStatsBuilder_ != null) { + clientStatsBuilder_.dispose(); + clientStatsBuilder_ = null; + } rowsCase_ = 0; rows_ = null; return this; @@ -3765,6 +3844,11 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.AppendRowsReques if (((from_bitField0_ & 0x00000040) != 0)) { result.defaultMissingValueInterpretation_ = defaultMissingValueInterpretation_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.clientStats_ = + clientStatsBuilder_ == null ? clientStats_ : clientStatsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -3812,6 +3896,9 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AppendRowsRequest setDefaultMissingValueInterpretationValue( other.getDefaultMissingValueInterpretationValue()); } + if (other.hasClientStats()) { + mergeClientStats(other.getClientStats()); + } switch (other.getRowsCase()) { case PROTO_ROWS: { @@ -3913,6 +4000,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 64 + case 74: + { + input.readMessage( + internalGetClientStatsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5702,6 +5796,220 @@ public Builder clearDefaultMissingValueInterpretation() { return this; } + private com.google.cloud.bigquery.storage.v1.ClientStats clientStats_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats, + com.google.cloud.bigquery.storage.v1.ClientStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStatsOrBuilder> + clientStatsBuilder_; + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clientStats field is set. + */ + public boolean hasClientStats() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clientStats. + */ + public com.google.cloud.bigquery.storage.v1.ClientStats getClientStats() { + if (clientStatsBuilder_ == null) { + return clientStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.getDefaultInstance() + : clientStats_; + } else { + return clientStatsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClientStats(com.google.cloud.bigquery.storage.v1.ClientStats value) { + if (clientStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clientStats_ = value; + } else { + clientStatsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClientStats( + com.google.cloud.bigquery.storage.v1.ClientStats.Builder builderForValue) { + if (clientStatsBuilder_ == null) { + clientStats_ = builderForValue.build(); + } else { + clientStatsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeClientStats(com.google.cloud.bigquery.storage.v1.ClientStats value) { + if (clientStatsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && clientStats_ != null + && clientStats_ + != com.google.cloud.bigquery.storage.v1.ClientStats.getDefaultInstance()) { + getClientStatsBuilder().mergeFrom(value); + } else { + clientStats_ = value; + } + } else { + clientStatsBuilder_.mergeFrom(value); + } + if (clientStats_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearClientStats() { + bitField0_ = (bitField0_ & ~0x00000080); + clientStats_ = null; + if (clientStatsBuilder_ != null) { + clientStatsBuilder_.dispose(); + clientStatsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.storage.v1.ClientStats.Builder getClientStatsBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetClientStatsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.storage.v1.ClientStatsOrBuilder getClientStatsOrBuilder() { + if (clientStatsBuilder_ != null) { + return clientStatsBuilder_.getMessageOrBuilder(); + } else { + return clientStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.getDefaultInstance() + : clientStats_; + } + } + + /** + * + * + *
+     * Optional. Stats and telemetry data gathered on the client side.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats, + com.google.cloud.bigquery.storage.v1.ClientStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStatsOrBuilder> + internalGetClientStatsFieldBuilder() { + if (clientStatsBuilder_ == null) { + clientStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats, + com.google.cloud.bigquery.storage.v1.ClientStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStatsOrBuilder>( + getClientStats(), getParentForChildren(), isClean()); + clientStats_ = null; + } + return clientStatsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.AppendRowsRequest) } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java index 0ce0dfc8a869..fb092d67cd72 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java @@ -574,5 +574,48 @@ public interface AppendRowsRequestOrBuilder com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation getDefaultMissingValueInterpretation(); + /** + * + * + *
+   * Optional. Stats and telemetry data gathered on the client side.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clientStats field is set. + */ + boolean hasClientStats(); + + /** + * + * + *
+   * Optional. Stats and telemetry data gathered on the client side.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clientStats. + */ + com.google.cloud.bigquery.storage.v1.ClientStats getClientStats(); + + /** + * + * + *
+   * Optional. Stats and telemetry data gathered on the client side.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats client_stats = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.bigquery.storage.v1.ClientStatsOrBuilder getClientStatsOrBuilder(); + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.RowsCase getRowsCase(); } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ClientStats.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ClientStats.java new file mode 100644 index 000000000000..a5dcf01d0424 --- /dev/null +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ClientStats.java @@ -0,0 +1,3632 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/bigquery/storage/v1/storage.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.bigquery.storage.v1; + +/** + * + * + *
+ * Stats and telemetry data gathered on the client side about requests
+ * being sent to the BigQuery Storage service, for internal use only.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1.ClientStats} + */ +@com.google.protobuf.Generated +public final class ClientStats extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ClientStats) + ClientStatsOrBuilder { + 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= */ "", + "ClientStats"); + } + + // Use ClientStats.newBuilder() to construct. + private ClientStats(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ClientStats() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1.ClientStats.class, + com.google.cloud.bigquery.storage.v1.ClientStats.Builder.class); + } + + public interface RequestStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ClientStats.RequestStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Timestamp indicating when the request was sent over the
+     * network, expressed in epoch milliseconds.
+     * 
+ * + * optional int64 send_time_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sendTimeMillis field is set. + */ + boolean hasSendTimeMillis(); + + /** + * + * + *
+     * Optional. Timestamp indicating when the request was sent over the
+     * network, expressed in epoch milliseconds.
+     * 
+ * + * optional int64 send_time_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sendTimeMillis. + */ + long getSendTimeMillis(); + + /** + * + * + *
+     * Optional. Number of pending requests at the moment this request was sent.
+     * This includes requests waiting to be sent, and those that are inflight.
+     * 
+ * + * optional int64 queued_requests_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queuedRequestsCount field is set. + */ + boolean hasQueuedRequestsCount(); + + /** + * + * + *
+     * Optional. Number of pending requests at the moment this request was sent.
+     * This includes requests waiting to be sent, and those that are inflight.
+     * 
+ * + * optional int64 queued_requests_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queuedRequestsCount. + */ + long getQueuedRequestsCount(); + } + + /** + * + * + *
+   * Stats and telemetry data gathered on the client side about a single
+   * request.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1.ClientStats.RequestStats} + */ + public static final class RequestStats extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ClientStats.RequestStats) + RequestStatsOrBuilder { + 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= */ "", + "RequestStats"); + } + + // Use RequestStats.newBuilder() to construct. + private RequestStats(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RequestStats() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.class, + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.Builder.class); + } + + private int bitField0_; + public static final int SEND_TIME_MILLIS_FIELD_NUMBER = 1; + private long sendTimeMillis_ = 0L; + + /** + * + * + *
+     * Optional. Timestamp indicating when the request was sent over the
+     * network, expressed in epoch milliseconds.
+     * 
+ * + * optional int64 send_time_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sendTimeMillis field is set. + */ + @java.lang.Override + public boolean hasSendTimeMillis() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Timestamp indicating when the request was sent over the
+     * network, expressed in epoch milliseconds.
+     * 
+ * + * optional int64 send_time_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sendTimeMillis. + */ + @java.lang.Override + public long getSendTimeMillis() { + return sendTimeMillis_; + } + + public static final int QUEUED_REQUESTS_COUNT_FIELD_NUMBER = 2; + private long queuedRequestsCount_ = 0L; + + /** + * + * + *
+     * Optional. Number of pending requests at the moment this request was sent.
+     * This includes requests waiting to be sent, and those that are inflight.
+     * 
+ * + * optional int64 queued_requests_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queuedRequestsCount field is set. + */ + @java.lang.Override + public boolean hasQueuedRequestsCount() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Number of pending requests at the moment this request was sent.
+     * This includes requests waiting to be sent, and those that are inflight.
+     * 
+ * + * optional int64 queued_requests_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queuedRequestsCount. + */ + @java.lang.Override + public long getQueuedRequestsCount() { + return queuedRequestsCount_; + } + + 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.writeInt64(1, sendTimeMillis_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, queuedRequestsCount_); + } + 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.computeInt64Size(1, sendTimeMillis_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, queuedRequestsCount_); + } + 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.bigquery.storage.v1.ClientStats.RequestStats)) { + return super.equals(obj); + } + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats other = + (com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats) obj; + + if (hasSendTimeMillis() != other.hasSendTimeMillis()) return false; + if (hasSendTimeMillis()) { + if (getSendTimeMillis() != other.getSendTimeMillis()) return false; + } + if (hasQueuedRequestsCount() != other.hasQueuedRequestsCount()) return false; + if (hasQueuedRequestsCount()) { + if (getQueuedRequestsCount() != other.getQueuedRequestsCount()) 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 (hasSendTimeMillis()) { + hash = (37 * hash) + SEND_TIME_MILLIS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSendTimeMillis()); + } + if (hasQueuedRequestsCount()) { + hash = (37 * hash) + QUEUED_REQUESTS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getQueuedRequestsCount()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats 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.bigquery.storage.v1.ClientStats.RequestStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats 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.bigquery.storage.v1.ClientStats.RequestStats parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats 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.bigquery.storage.v1.ClientStats.RequestStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats 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.bigquery.storage.v1.ClientStats.RequestStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats 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.bigquery.storage.v1.ClientStats.RequestStats 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; + } + + /** + * + * + *
+     * Stats and telemetry data gathered on the client side about a single
+     * request.
+     * 
+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1.ClientStats.RequestStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ClientStats.RequestStats) + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.class, + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.Builder.class); + } + + // Construct using com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sendTimeMillis_ = 0L; + queuedRequestsCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats build() { + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats buildPartial() { + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats result = + new com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sendTimeMillis_ = sendTimeMillis_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queuedRequestsCount_ = queuedRequestsCount_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats) { + return mergeFrom((com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats other) { + if (other + == com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.getDefaultInstance()) + return this; + if (other.hasSendTimeMillis()) { + setSendTimeMillis(other.getSendTimeMillis()); + } + if (other.hasQueuedRequestsCount()) { + setQueuedRequestsCount(other.getQueuedRequestsCount()); + } + 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: + { + sendTimeMillis_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + queuedRequestsCount_ = input.readInt64(); + 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 long sendTimeMillis_; + + /** + * + * + *
+       * Optional. Timestamp indicating when the request was sent over the
+       * network, expressed in epoch milliseconds.
+       * 
+ * + * optional int64 send_time_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the sendTimeMillis field is set. + */ + @java.lang.Override + public boolean hasSendTimeMillis() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Optional. Timestamp indicating when the request was sent over the
+       * network, expressed in epoch milliseconds.
+       * 
+ * + * optional int64 send_time_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sendTimeMillis. + */ + @java.lang.Override + public long getSendTimeMillis() { + return sendTimeMillis_; + } + + /** + * + * + *
+       * Optional. Timestamp indicating when the request was sent over the
+       * network, expressed in epoch milliseconds.
+       * 
+ * + * optional int64 send_time_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sendTimeMillis to set. + * @return This builder for chaining. + */ + public Builder setSendTimeMillis(long value) { + + sendTimeMillis_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Timestamp indicating when the request was sent over the
+       * network, expressed in epoch milliseconds.
+       * 
+ * + * optional int64 send_time_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSendTimeMillis() { + bitField0_ = (bitField0_ & ~0x00000001); + sendTimeMillis_ = 0L; + onChanged(); + return this; + } + + private long queuedRequestsCount_; + + /** + * + * + *
+       * Optional. Number of pending requests at the moment this request was sent.
+       * This includes requests waiting to be sent, and those that are inflight.
+       * 
+ * + * optional int64 queued_requests_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queuedRequestsCount field is set. + */ + @java.lang.Override + public boolean hasQueuedRequestsCount() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. Number of pending requests at the moment this request was sent.
+       * This includes requests waiting to be sent, and those that are inflight.
+       * 
+ * + * optional int64 queued_requests_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queuedRequestsCount. + */ + @java.lang.Override + public long getQueuedRequestsCount() { + return queuedRequestsCount_; + } + + /** + * + * + *
+       * Optional. Number of pending requests at the moment this request was sent.
+       * This includes requests waiting to be sent, and those that are inflight.
+       * 
+ * + * optional int64 queued_requests_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The queuedRequestsCount to set. + * @return This builder for chaining. + */ + public Builder setQueuedRequestsCount(long value) { + + queuedRequestsCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Number of pending requests at the moment this request was sent.
+       * This includes requests waiting to be sent, and those that are inflight.
+       * 
+ * + * optional int64 queued_requests_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearQueuedRequestsCount() { + bitField0_ = (bitField0_ & ~0x00000002); + queuedRequestsCount_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ClientStats.RequestStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ClientStats.RequestStats) + private static final com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats(); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestStats 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.bigquery.storage.v1.ClientStats.RequestStats + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface WindowStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ClientStats.WindowStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The maximum response latency observed in the window, expressed
+     * in milliseconds.
+     * 
+ * + * + * optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maxResponseLatencyMillis field is set. + */ + boolean hasMaxResponseLatencyMillis(); + + /** + * + * + *
+     * Optional. The maximum response latency observed in the window, expressed
+     * in milliseconds.
+     * 
+ * + * + * optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxResponseLatencyMillis. + */ + long getMaxResponseLatencyMillis(); + + /** + * + * + *
+     * Optional. The average response latency observed in the window, expressed
+     * in milliseconds.
+     * 
+ * + * + * optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avgResponseLatencyMillis field is set. + */ + boolean hasAvgResponseLatencyMillis(); + + /** + * + * + *
+     * Optional. The average response latency observed in the window, expressed
+     * in milliseconds.
+     * 
+ * + * + * optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avgResponseLatencyMillis. + */ + long getAvgResponseLatencyMillis(); + + /** + * + * + *
+     * Optional. The longest time spent waiting without receiving a response in
+     * the window. This could exceed max_response_latency_millis because the
+     * latter is evaluated only when a response is received. Expressed in
+     * milliseconds.
+     * 
+ * + * + * optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the longestWaitNoResponseMillis field is set. + */ + boolean hasLongestWaitNoResponseMillis(); + + /** + * + * + *
+     * Optional. The longest time spent waiting without receiving a response in
+     * the window. This could exceed max_response_latency_millis because the
+     * latter is evaluated only when a response is received. Expressed in
+     * milliseconds.
+     * 
+ * + * + * optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The longestWaitNoResponseMillis. + */ + long getLongestWaitNoResponseMillis(); + + /** + * + * + *
+     * Optional. How many requests were sent in the window.
+     * 
+ * + * optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestsSentCount field is set. + */ + boolean hasRequestsSentCount(); + + /** + * + * + *
+     * Optional. How many requests were sent in the window.
+     * 
+ * + * optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestsSentCount. + */ + long getRequestsSentCount(); + + /** + * + * + *
+     * Optional. How many responses were received in the window.
+     * 
+ * + * optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the responsesReceivedCount field is set. + */ + boolean hasResponsesReceivedCount(); + + /** + * + * + *
+     * Optional. How many responses were received in the window.
+     * 
+ * + * optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responsesReceivedCount. + */ + long getResponsesReceivedCount(); + + /** + * + * + *
+     * Optional. How many bytes were sent in the window.
+     * 
+ * + * optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the bytesSentCount field is set. + */ + boolean hasBytesSentCount(); + + /** + * + * + *
+     * Optional. How many bytes were sent in the window.
+     * 
+ * + * optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytesSentCount. + */ + long getBytesSentCount(); + + /** + * + * + *
+     * Optional. Start time of the window interval for which these stats are
+     * aggregated, expressed in epoch milliseconds.
+     * 
+ * + * + * optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the windowStartTimeEpochMillis field is set. + */ + boolean hasWindowStartTimeEpochMillis(); + + /** + * + * + *
+     * Optional. Start time of the window interval for which these stats are
+     * aggregated, expressed in epoch milliseconds.
+     * 
+ * + * + * optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The windowStartTimeEpochMillis. + */ + long getWindowStartTimeEpochMillis(); + + /** + * + * + *
+     * Optional. Duration of the window interval for which these stats are
+     * aggregated, expressed in milliseconds.
+     * 
+ * + * optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the windowMillis field is set. + */ + boolean hasWindowMillis(); + + /** + * + * + *
+     * Optional. Duration of the window interval for which these stats are
+     * aggregated, expressed in milliseconds.
+     * 
+ * + * optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The windowMillis. + */ + long getWindowMillis(); + } + + /** + * + * + *
+   * Aggregate connection metrics over a window interval.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1.ClientStats.WindowStats} + */ + public static final class WindowStats extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ClientStats.WindowStats) + WindowStatsOrBuilder { + 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= */ "", + "WindowStats"); + } + + // Use WindowStats.newBuilder() to construct. + private WindowStats(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private WindowStats() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.class, + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.Builder.class); + } + + private int bitField0_; + public static final int MAX_RESPONSE_LATENCY_MILLIS_FIELD_NUMBER = 1; + private long maxResponseLatencyMillis_ = 0L; + + /** + * + * + *
+     * Optional. The maximum response latency observed in the window, expressed
+     * in milliseconds.
+     * 
+ * + * + * optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maxResponseLatencyMillis field is set. + */ + @java.lang.Override + public boolean hasMaxResponseLatencyMillis() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The maximum response latency observed in the window, expressed
+     * in milliseconds.
+     * 
+ * + * + * optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxResponseLatencyMillis. + */ + @java.lang.Override + public long getMaxResponseLatencyMillis() { + return maxResponseLatencyMillis_; + } + + public static final int AVG_RESPONSE_LATENCY_MILLIS_FIELD_NUMBER = 2; + private long avgResponseLatencyMillis_ = 0L; + + /** + * + * + *
+     * Optional. The average response latency observed in the window, expressed
+     * in milliseconds.
+     * 
+ * + * + * optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avgResponseLatencyMillis field is set. + */ + @java.lang.Override + public boolean hasAvgResponseLatencyMillis() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The average response latency observed in the window, expressed
+     * in milliseconds.
+     * 
+ * + * + * optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avgResponseLatencyMillis. + */ + @java.lang.Override + public long getAvgResponseLatencyMillis() { + return avgResponseLatencyMillis_; + } + + public static final int LONGEST_WAIT_NO_RESPONSE_MILLIS_FIELD_NUMBER = 3; + private long longestWaitNoResponseMillis_ = 0L; + + /** + * + * + *
+     * Optional. The longest time spent waiting without receiving a response in
+     * the window. This could exceed max_response_latency_millis because the
+     * latter is evaluated only when a response is received. Expressed in
+     * milliseconds.
+     * 
+ * + * + * optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the longestWaitNoResponseMillis field is set. + */ + @java.lang.Override + public boolean hasLongestWaitNoResponseMillis() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. The longest time spent waiting without receiving a response in
+     * the window. This could exceed max_response_latency_millis because the
+     * latter is evaluated only when a response is received. Expressed in
+     * milliseconds.
+     * 
+ * + * + * optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The longestWaitNoResponseMillis. + */ + @java.lang.Override + public long getLongestWaitNoResponseMillis() { + return longestWaitNoResponseMillis_; + } + + public static final int REQUESTS_SENT_COUNT_FIELD_NUMBER = 4; + private long requestsSentCount_ = 0L; + + /** + * + * + *
+     * Optional. How many requests were sent in the window.
+     * 
+ * + * optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestsSentCount field is set. + */ + @java.lang.Override + public boolean hasRequestsSentCount() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. How many requests were sent in the window.
+     * 
+ * + * optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestsSentCount. + */ + @java.lang.Override + public long getRequestsSentCount() { + return requestsSentCount_; + } + + public static final int RESPONSES_RECEIVED_COUNT_FIELD_NUMBER = 5; + private long responsesReceivedCount_ = 0L; + + /** + * + * + *
+     * Optional. How many responses were received in the window.
+     * 
+ * + * optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the responsesReceivedCount field is set. + */ + @java.lang.Override + public boolean hasResponsesReceivedCount() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. How many responses were received in the window.
+     * 
+ * + * optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responsesReceivedCount. + */ + @java.lang.Override + public long getResponsesReceivedCount() { + return responsesReceivedCount_; + } + + public static final int BYTES_SENT_COUNT_FIELD_NUMBER = 6; + private long bytesSentCount_ = 0L; + + /** + * + * + *
+     * Optional. How many bytes were sent in the window.
+     * 
+ * + * optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the bytesSentCount field is set. + */ + @java.lang.Override + public boolean hasBytesSentCount() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. How many bytes were sent in the window.
+     * 
+ * + * optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytesSentCount. + */ + @java.lang.Override + public long getBytesSentCount() { + return bytesSentCount_; + } + + public static final int WINDOW_START_TIME_EPOCH_MILLIS_FIELD_NUMBER = 7; + private long windowStartTimeEpochMillis_ = 0L; + + /** + * + * + *
+     * Optional. Start time of the window interval for which these stats are
+     * aggregated, expressed in epoch milliseconds.
+     * 
+ * + * + * optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the windowStartTimeEpochMillis field is set. + */ + @java.lang.Override + public boolean hasWindowStartTimeEpochMillis() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. Start time of the window interval for which these stats are
+     * aggregated, expressed in epoch milliseconds.
+     * 
+ * + * + * optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The windowStartTimeEpochMillis. + */ + @java.lang.Override + public long getWindowStartTimeEpochMillis() { + return windowStartTimeEpochMillis_; + } + + public static final int WINDOW_MILLIS_FIELD_NUMBER = 8; + private long windowMillis_ = 0L; + + /** + * + * + *
+     * Optional. Duration of the window interval for which these stats are
+     * aggregated, expressed in milliseconds.
+     * 
+ * + * optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the windowMillis field is set. + */ + @java.lang.Override + public boolean hasWindowMillis() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. Duration of the window interval for which these stats are
+     * aggregated, expressed in milliseconds.
+     * 
+ * + * optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The windowMillis. + */ + @java.lang.Override + public long getWindowMillis() { + return windowMillis_; + } + + 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.writeInt64(1, maxResponseLatencyMillis_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, avgResponseLatencyMillis_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, longestWaitNoResponseMillis_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(4, requestsSentCount_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt64(5, responsesReceivedCount_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeInt64(6, bytesSentCount_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeInt64(7, windowStartTimeEpochMillis_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeInt64(8, windowMillis_); + } + 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.computeInt64Size(1, maxResponseLatencyMillis_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(2, avgResponseLatencyMillis_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(3, longestWaitNoResponseMillis_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, requestsSentCount_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, responsesReceivedCount_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, bytesSentCount_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(7, windowStartTimeEpochMillis_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, windowMillis_); + } + 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.bigquery.storage.v1.ClientStats.WindowStats)) { + return super.equals(obj); + } + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats other = + (com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats) obj; + + if (hasMaxResponseLatencyMillis() != other.hasMaxResponseLatencyMillis()) return false; + if (hasMaxResponseLatencyMillis()) { + if (getMaxResponseLatencyMillis() != other.getMaxResponseLatencyMillis()) return false; + } + if (hasAvgResponseLatencyMillis() != other.hasAvgResponseLatencyMillis()) return false; + if (hasAvgResponseLatencyMillis()) { + if (getAvgResponseLatencyMillis() != other.getAvgResponseLatencyMillis()) return false; + } + if (hasLongestWaitNoResponseMillis() != other.hasLongestWaitNoResponseMillis()) return false; + if (hasLongestWaitNoResponseMillis()) { + if (getLongestWaitNoResponseMillis() != other.getLongestWaitNoResponseMillis()) + return false; + } + if (hasRequestsSentCount() != other.hasRequestsSentCount()) return false; + if (hasRequestsSentCount()) { + if (getRequestsSentCount() != other.getRequestsSentCount()) return false; + } + if (hasResponsesReceivedCount() != other.hasResponsesReceivedCount()) return false; + if (hasResponsesReceivedCount()) { + if (getResponsesReceivedCount() != other.getResponsesReceivedCount()) return false; + } + if (hasBytesSentCount() != other.hasBytesSentCount()) return false; + if (hasBytesSentCount()) { + if (getBytesSentCount() != other.getBytesSentCount()) return false; + } + if (hasWindowStartTimeEpochMillis() != other.hasWindowStartTimeEpochMillis()) return false; + if (hasWindowStartTimeEpochMillis()) { + if (getWindowStartTimeEpochMillis() != other.getWindowStartTimeEpochMillis()) return false; + } + if (hasWindowMillis() != other.hasWindowMillis()) return false; + if (hasWindowMillis()) { + if (getWindowMillis() != other.getWindowMillis()) 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 (hasMaxResponseLatencyMillis()) { + hash = (37 * hash) + MAX_RESPONSE_LATENCY_MILLIS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxResponseLatencyMillis()); + } + if (hasAvgResponseLatencyMillis()) { + hash = (37 * hash) + AVG_RESPONSE_LATENCY_MILLIS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAvgResponseLatencyMillis()); + } + if (hasLongestWaitNoResponseMillis()) { + hash = (37 * hash) + LONGEST_WAIT_NO_RESPONSE_MILLIS_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashLong(getLongestWaitNoResponseMillis()); + } + if (hasRequestsSentCount()) { + hash = (37 * hash) + REQUESTS_SENT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestsSentCount()); + } + if (hasResponsesReceivedCount()) { + hash = (37 * hash) + RESPONSES_RECEIVED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getResponsesReceivedCount()); + } + if (hasBytesSentCount()) { + hash = (37 * hash) + BYTES_SENT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBytesSentCount()); + } + if (hasWindowStartTimeEpochMillis()) { + hash = (37 * hash) + WINDOW_START_TIME_EPOCH_MILLIS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWindowStartTimeEpochMillis()); + } + if (hasWindowMillis()) { + hash = (37 * hash) + WINDOW_MILLIS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWindowMillis()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats 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.bigquery.storage.v1.ClientStats.WindowStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats 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.bigquery.storage.v1.ClientStats.WindowStats parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats 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.bigquery.storage.v1.ClientStats.WindowStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats 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.bigquery.storage.v1.ClientStats.WindowStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats 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.bigquery.storage.v1.ClientStats.WindowStats 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; + } + + /** + * + * + *
+     * Aggregate connection metrics over a window interval.
+     * 
+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1.ClientStats.WindowStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ClientStats.WindowStats) + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.class, + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.Builder.class); + } + + // Construct using com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + maxResponseLatencyMillis_ = 0L; + avgResponseLatencyMillis_ = 0L; + longestWaitNoResponseMillis_ = 0L; + requestsSentCount_ = 0L; + responsesReceivedCount_ = 0L; + bytesSentCount_ = 0L; + windowStartTimeEpochMillis_ = 0L; + windowMillis_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats build() { + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats buildPartial() { + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats result = + new com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxResponseLatencyMillis_ = maxResponseLatencyMillis_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.avgResponseLatencyMillis_ = avgResponseLatencyMillis_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.longestWaitNoResponseMillis_ = longestWaitNoResponseMillis_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestsSentCount_ = requestsSentCount_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.responsesReceivedCount_ = responsesReceivedCount_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.bytesSentCount_ = bytesSentCount_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.windowStartTimeEpochMillis_ = windowStartTimeEpochMillis_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.windowMillis_ = windowMillis_; + to_bitField0_ |= 0x00000080; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats) { + return mergeFrom((com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats other) { + if (other + == com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.getDefaultInstance()) + return this; + if (other.hasMaxResponseLatencyMillis()) { + setMaxResponseLatencyMillis(other.getMaxResponseLatencyMillis()); + } + if (other.hasAvgResponseLatencyMillis()) { + setAvgResponseLatencyMillis(other.getAvgResponseLatencyMillis()); + } + if (other.hasLongestWaitNoResponseMillis()) { + setLongestWaitNoResponseMillis(other.getLongestWaitNoResponseMillis()); + } + if (other.hasRequestsSentCount()) { + setRequestsSentCount(other.getRequestsSentCount()); + } + if (other.hasResponsesReceivedCount()) { + setResponsesReceivedCount(other.getResponsesReceivedCount()); + } + if (other.hasBytesSentCount()) { + setBytesSentCount(other.getBytesSentCount()); + } + if (other.hasWindowStartTimeEpochMillis()) { + setWindowStartTimeEpochMillis(other.getWindowStartTimeEpochMillis()); + } + if (other.hasWindowMillis()) { + setWindowMillis(other.getWindowMillis()); + } + 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: + { + maxResponseLatencyMillis_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + avgResponseLatencyMillis_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + longestWaitNoResponseMillis_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + requestsSentCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + responsesReceivedCount_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + bytesSentCount_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + windowStartTimeEpochMillis_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + windowMillis_ = input.readInt64(); + 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 long maxResponseLatencyMillis_; + + /** + * + * + *
+       * Optional. The maximum response latency observed in the window, expressed
+       * in milliseconds.
+       * 
+ * + * + * optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maxResponseLatencyMillis field is set. + */ + @java.lang.Override + public boolean hasMaxResponseLatencyMillis() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Optional. The maximum response latency observed in the window, expressed
+       * in milliseconds.
+       * 
+ * + * + * optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxResponseLatencyMillis. + */ + @java.lang.Override + public long getMaxResponseLatencyMillis() { + return maxResponseLatencyMillis_; + } + + /** + * + * + *
+       * Optional. The maximum response latency observed in the window, expressed
+       * in milliseconds.
+       * 
+ * + * + * optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The maxResponseLatencyMillis to set. + * @return This builder for chaining. + */ + public Builder setMaxResponseLatencyMillis(long value) { + + maxResponseLatencyMillis_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The maximum response latency observed in the window, expressed
+       * in milliseconds.
+       * 
+ * + * + * optional int64 max_response_latency_millis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMaxResponseLatencyMillis() { + bitField0_ = (bitField0_ & ~0x00000001); + maxResponseLatencyMillis_ = 0L; + onChanged(); + return this; + } + + private long avgResponseLatencyMillis_; + + /** + * + * + *
+       * Optional. The average response latency observed in the window, expressed
+       * in milliseconds.
+       * 
+ * + * + * optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avgResponseLatencyMillis field is set. + */ + @java.lang.Override + public boolean hasAvgResponseLatencyMillis() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+       * Optional. The average response latency observed in the window, expressed
+       * in milliseconds.
+       * 
+ * + * + * optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avgResponseLatencyMillis. + */ + @java.lang.Override + public long getAvgResponseLatencyMillis() { + return avgResponseLatencyMillis_; + } + + /** + * + * + *
+       * Optional. The average response latency observed in the window, expressed
+       * in milliseconds.
+       * 
+ * + * + * optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The avgResponseLatencyMillis to set. + * @return This builder for chaining. + */ + public Builder setAvgResponseLatencyMillis(long value) { + + avgResponseLatencyMillis_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The average response latency observed in the window, expressed
+       * in milliseconds.
+       * 
+ * + * + * optional int64 avg_response_latency_millis = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAvgResponseLatencyMillis() { + bitField0_ = (bitField0_ & ~0x00000002); + avgResponseLatencyMillis_ = 0L; + onChanged(); + return this; + } + + private long longestWaitNoResponseMillis_; + + /** + * + * + *
+       * Optional. The longest time spent waiting without receiving a response in
+       * the window. This could exceed max_response_latency_millis because the
+       * latter is evaluated only when a response is received. Expressed in
+       * milliseconds.
+       * 
+ * + * + * optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the longestWaitNoResponseMillis field is set. + */ + @java.lang.Override + public boolean hasLongestWaitNoResponseMillis() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * Optional. The longest time spent waiting without receiving a response in
+       * the window. This could exceed max_response_latency_millis because the
+       * latter is evaluated only when a response is received. Expressed in
+       * milliseconds.
+       * 
+ * + * + * optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The longestWaitNoResponseMillis. + */ + @java.lang.Override + public long getLongestWaitNoResponseMillis() { + return longestWaitNoResponseMillis_; + } + + /** + * + * + *
+       * Optional. The longest time spent waiting without receiving a response in
+       * the window. This could exceed max_response_latency_millis because the
+       * latter is evaluated only when a response is received. Expressed in
+       * milliseconds.
+       * 
+ * + * + * optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The longestWaitNoResponseMillis to set. + * @return This builder for chaining. + */ + public Builder setLongestWaitNoResponseMillis(long value) { + + longestWaitNoResponseMillis_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The longest time spent waiting without receiving a response in
+       * the window. This could exceed max_response_latency_millis because the
+       * latter is evaluated only when a response is received. Expressed in
+       * milliseconds.
+       * 
+ * + * + * optional int64 longest_wait_no_response_millis = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearLongestWaitNoResponseMillis() { + bitField0_ = (bitField0_ & ~0x00000004); + longestWaitNoResponseMillis_ = 0L; + onChanged(); + return this; + } + + private long requestsSentCount_; + + /** + * + * + *
+       * Optional. How many requests were sent in the window.
+       * 
+ * + * optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestsSentCount field is set. + */ + @java.lang.Override + public boolean hasRequestsSentCount() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+       * Optional. How many requests were sent in the window.
+       * 
+ * + * optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestsSentCount. + */ + @java.lang.Override + public long getRequestsSentCount() { + return requestsSentCount_; + } + + /** + * + * + *
+       * Optional. How many requests were sent in the window.
+       * 
+ * + * optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The requestsSentCount to set. + * @return This builder for chaining. + */ + public Builder setRequestsSentCount(long value) { + + requestsSentCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. How many requests were sent in the window.
+       * 
+ * + * optional int64 requests_sent_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRequestsSentCount() { + bitField0_ = (bitField0_ & ~0x00000008); + requestsSentCount_ = 0L; + onChanged(); + return this; + } + + private long responsesReceivedCount_; + + /** + * + * + *
+       * Optional. How many responses were received in the window.
+       * 
+ * + * + * optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the responsesReceivedCount field is set. + */ + @java.lang.Override + public boolean hasResponsesReceivedCount() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+       * Optional. How many responses were received in the window.
+       * 
+ * + * + * optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responsesReceivedCount. + */ + @java.lang.Override + public long getResponsesReceivedCount() { + return responsesReceivedCount_; + } + + /** + * + * + *
+       * Optional. How many responses were received in the window.
+       * 
+ * + * + * optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The responsesReceivedCount to set. + * @return This builder for chaining. + */ + public Builder setResponsesReceivedCount(long value) { + + responsesReceivedCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. How many responses were received in the window.
+       * 
+ * + * + * optional int64 responses_received_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearResponsesReceivedCount() { + bitField0_ = (bitField0_ & ~0x00000010); + responsesReceivedCount_ = 0L; + onChanged(); + return this; + } + + private long bytesSentCount_; + + /** + * + * + *
+       * Optional. How many bytes were sent in the window.
+       * 
+ * + * optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the bytesSentCount field is set. + */ + @java.lang.Override + public boolean hasBytesSentCount() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+       * Optional. How many bytes were sent in the window.
+       * 
+ * + * optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytesSentCount. + */ + @java.lang.Override + public long getBytesSentCount() { + return bytesSentCount_; + } + + /** + * + * + *
+       * Optional. How many bytes were sent in the window.
+       * 
+ * + * optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytesSentCount to set. + * @return This builder for chaining. + */ + public Builder setBytesSentCount(long value) { + + bytesSentCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. How many bytes were sent in the window.
+       * 
+ * + * optional int64 bytes_sent_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBytesSentCount() { + bitField0_ = (bitField0_ & ~0x00000020); + bytesSentCount_ = 0L; + onChanged(); + return this; + } + + private long windowStartTimeEpochMillis_; + + /** + * + * + *
+       * Optional. Start time of the window interval for which these stats are
+       * aggregated, expressed in epoch milliseconds.
+       * 
+ * + * + * optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the windowStartTimeEpochMillis field is set. + */ + @java.lang.Override + public boolean hasWindowStartTimeEpochMillis() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+       * Optional. Start time of the window interval for which these stats are
+       * aggregated, expressed in epoch milliseconds.
+       * 
+ * + * + * optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The windowStartTimeEpochMillis. + */ + @java.lang.Override + public long getWindowStartTimeEpochMillis() { + return windowStartTimeEpochMillis_; + } + + /** + * + * + *
+       * Optional. Start time of the window interval for which these stats are
+       * aggregated, expressed in epoch milliseconds.
+       * 
+ * + * + * optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The windowStartTimeEpochMillis to set. + * @return This builder for chaining. + */ + public Builder setWindowStartTimeEpochMillis(long value) { + + windowStartTimeEpochMillis_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Start time of the window interval for which these stats are
+       * aggregated, expressed in epoch milliseconds.
+       * 
+ * + * + * optional int64 window_start_time_epoch_millis = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearWindowStartTimeEpochMillis() { + bitField0_ = (bitField0_ & ~0x00000040); + windowStartTimeEpochMillis_ = 0L; + onChanged(); + return this; + } + + private long windowMillis_; + + /** + * + * + *
+       * Optional. Duration of the window interval for which these stats are
+       * aggregated, expressed in milliseconds.
+       * 
+ * + * optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the windowMillis field is set. + */ + @java.lang.Override + public boolean hasWindowMillis() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+       * Optional. Duration of the window interval for which these stats are
+       * aggregated, expressed in milliseconds.
+       * 
+ * + * optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The windowMillis. + */ + @java.lang.Override + public long getWindowMillis() { + return windowMillis_; + } + + /** + * + * + *
+       * Optional. Duration of the window interval for which these stats are
+       * aggregated, expressed in milliseconds.
+       * 
+ * + * optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The windowMillis to set. + * @return This builder for chaining. + */ + public Builder setWindowMillis(long value) { + + windowMillis_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Duration of the window interval for which these stats are
+       * aggregated, expressed in milliseconds.
+       * 
+ * + * optional int64 window_millis = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearWindowMillis() { + bitField0_ = (bitField0_ & ~0x00000080); + windowMillis_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ClientStats.WindowStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ClientStats.WindowStats) + private static final com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats(); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WindowStats 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.bigquery.storage.v1.ClientStats.WindowStats + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int REQUEST_STATS_FIELD_NUMBER = 1; + private com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats requestStats_; + + /** + * + * + *
+   * Optional. Per-request stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestStats field is set. + */ + @java.lang.Override + public boolean hasRequestStats() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Per-request stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestStats. + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats getRequestStats() { + return requestStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.getDefaultInstance() + : requestStats_; + } + + /** + * + * + *
+   * Optional. Per-request stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.RequestStatsOrBuilder + getRequestStatsOrBuilder() { + return requestStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.getDefaultInstance() + : requestStats_; + } + + public static final int WINDOW_STATS_FIELD_NUMBER = 2; + private com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats windowStats_; + + /** + * + * + *
+   * Optional. Windowed stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the windowStats field is set. + */ + @java.lang.Override + public boolean hasWindowStats() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Windowed stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The windowStats. + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats getWindowStats() { + return windowStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.getDefaultInstance() + : windowStats_; + } + + /** + * + * + *
+   * Optional. Windowed stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats.WindowStatsOrBuilder + getWindowStatsOrBuilder() { + return windowStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.getDefaultInstance() + : windowStats_; + } + + 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, getRequestStats()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getWindowStats()); + } + 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, getRequestStats()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWindowStats()); + } + 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.bigquery.storage.v1.ClientStats)) { + return super.equals(obj); + } + com.google.cloud.bigquery.storage.v1.ClientStats other = + (com.google.cloud.bigquery.storage.v1.ClientStats) obj; + + if (hasRequestStats() != other.hasRequestStats()) return false; + if (hasRequestStats()) { + if (!getRequestStats().equals(other.getRequestStats())) return false; + } + if (hasWindowStats() != other.hasWindowStats()) return false; + if (hasWindowStats()) { + if (!getWindowStats().equals(other.getWindowStats())) 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 (hasRequestStats()) { + hash = (37 * hash) + REQUEST_STATS_FIELD_NUMBER; + hash = (53 * hash) + getRequestStats().hashCode(); + } + if (hasWindowStats()) { + hash = (37 * hash) + WINDOW_STATS_FIELD_NUMBER; + hash = (53 * hash) + getWindowStats().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats 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.bigquery.storage.v1.ClientStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats 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.bigquery.storage.v1.ClientStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats 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.bigquery.storage.v1.ClientStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats 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.bigquery.storage.v1.ClientStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats 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.bigquery.storage.v1.ClientStats 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; + } + + /** + * + * + *
+   * Stats and telemetry data gathered on the client side about requests
+   * being sent to the BigQuery Storage service, for internal use only.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1.ClientStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ClientStats) + com.google.cloud.bigquery.storage.v1.ClientStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1.ClientStats.class, + com.google.cloud.bigquery.storage.v1.ClientStats.Builder.class); + } + + // Construct using com.google.cloud.bigquery.storage.v1.ClientStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRequestStatsFieldBuilder(); + internalGetWindowStatsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + requestStats_ = null; + if (requestStatsBuilder_ != null) { + requestStatsBuilder_.dispose(); + requestStatsBuilder_ = null; + } + windowStats_ = null; + if (windowStatsBuilder_ != null) { + windowStatsBuilder_.dispose(); + windowStatsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ClientStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1.ClientStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats build() { + com.google.cloud.bigquery.storage.v1.ClientStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ClientStats buildPartial() { + com.google.cloud.bigquery.storage.v1.ClientStats result = + new com.google.cloud.bigquery.storage.v1.ClientStats(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.storage.v1.ClientStats result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.requestStats_ = + requestStatsBuilder_ == null ? requestStats_ : requestStatsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.windowStats_ = + windowStatsBuilder_ == null ? windowStats_ : windowStatsBuilder_.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.bigquery.storage.v1.ClientStats) { + return mergeFrom((com.google.cloud.bigquery.storage.v1.ClientStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ClientStats other) { + if (other == com.google.cloud.bigquery.storage.v1.ClientStats.getDefaultInstance()) + return this; + if (other.hasRequestStats()) { + mergeRequestStats(other.getRequestStats()); + } + if (other.hasWindowStats()) { + mergeWindowStats(other.getWindowStats()); + } + 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( + internalGetRequestStatsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetWindowStatsFieldBuilder().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.bigquery.storage.v1.ClientStats.RequestStats requestStats_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats, + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStatsOrBuilder> + requestStatsBuilder_; + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestStats field is set. + */ + public boolean hasRequestStats() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestStats. + */ + public com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats getRequestStats() { + if (requestStatsBuilder_ == null) { + return requestStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.getDefaultInstance() + : requestStats_; + } else { + return requestStatsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRequestStats( + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats value) { + if (requestStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestStats_ = value; + } else { + requestStatsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRequestStats( + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.Builder builderForValue) { + if (requestStatsBuilder_ == null) { + requestStats_ = builderForValue.build(); + } else { + requestStatsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRequestStats( + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats value) { + if (requestStatsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && requestStats_ != null + && requestStats_ + != com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats + .getDefaultInstance()) { + getRequestStatsBuilder().mergeFrom(value); + } else { + requestStats_ = value; + } + } else { + requestStatsBuilder_.mergeFrom(value); + } + if (requestStats_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRequestStats() { + bitField0_ = (bitField0_ & ~0x00000001); + requestStats_ = null; + if (requestStatsBuilder_ != null) { + requestStatsBuilder_.dispose(); + requestStatsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.Builder + getRequestStatsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetRequestStatsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.storage.v1.ClientStats.RequestStatsOrBuilder + getRequestStatsOrBuilder() { + if (requestStatsBuilder_ != null) { + return requestStatsBuilder_.getMessageOrBuilder(); + } else { + return requestStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.getDefaultInstance() + : requestStats_; + } + } + + /** + * + * + *
+     * Optional. Per-request stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats, + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStatsOrBuilder> + internalGetRequestStatsFieldBuilder() { + if (requestStatsBuilder_ == null) { + requestStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats, + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStatsOrBuilder>( + getRequestStats(), getParentForChildren(), isClean()); + requestStats_ = null; + } + return requestStatsBuilder_; + } + + private com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats windowStats_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats, + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStatsOrBuilder> + windowStatsBuilder_; + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the windowStats field is set. + */ + public boolean hasWindowStats() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The windowStats. + */ + public com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats getWindowStats() { + if (windowStatsBuilder_ == null) { + return windowStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.getDefaultInstance() + : windowStats_; + } else { + return windowStatsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWindowStats( + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats value) { + if (windowStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + windowStats_ = value; + } else { + windowStatsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWindowStats( + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.Builder builderForValue) { + if (windowStatsBuilder_ == null) { + windowStats_ = builderForValue.build(); + } else { + windowStatsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeWindowStats( + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats value) { + if (windowStatsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && windowStats_ != null + && windowStats_ + != com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats + .getDefaultInstance()) { + getWindowStatsBuilder().mergeFrom(value); + } else { + windowStats_ = value; + } + } else { + windowStatsBuilder_.mergeFrom(value); + } + if (windowStats_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearWindowStats() { + bitField0_ = (bitField0_ & ~0x00000002); + windowStats_ = null; + if (windowStatsBuilder_ != null) { + windowStatsBuilder_.dispose(); + windowStatsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.Builder + getWindowStatsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetWindowStatsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.storage.v1.ClientStats.WindowStatsOrBuilder + getWindowStatsOrBuilder() { + if (windowStatsBuilder_ != null) { + return windowStatsBuilder_.getMessageOrBuilder(); + } else { + return windowStats_ == null + ? com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.getDefaultInstance() + : windowStats_; + } + } + + /** + * + * + *
+     * Optional. Windowed stats.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats, + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStatsOrBuilder> + internalGetWindowStatsFieldBuilder() { + if (windowStatsBuilder_ == null) { + windowStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats, + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats.Builder, + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStatsOrBuilder>( + getWindowStats(), getParentForChildren(), isClean()); + windowStats_ = null; + } + return windowStatsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ClientStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ClientStats) + private static final com.google.cloud.bigquery.storage.v1.ClientStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ClientStats(); + } + + public static com.google.cloud.bigquery.storage.v1.ClientStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClientStats 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.bigquery.storage.v1.ClientStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ClientStatsOrBuilder.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ClientStatsOrBuilder.java new file mode 100644 index 000000000000..bde87406fc62 --- /dev/null +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ClientStatsOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/bigquery/storage/v1/storage.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.bigquery.storage.v1; + +@com.google.protobuf.Generated +public interface ClientStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ClientStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Per-request stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestStats field is set. + */ + boolean hasRequestStats(); + + /** + * + * + *
+   * Optional. Per-request stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestStats. + */ + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStats getRequestStats(); + + /** + * + * + *
+   * Optional. Per-request stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.RequestStats request_stats = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.bigquery.storage.v1.ClientStats.RequestStatsOrBuilder getRequestStatsOrBuilder(); + + /** + * + * + *
+   * Optional. Windowed stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the windowStats field is set. + */ + boolean hasWindowStats(); + + /** + * + * + *
+   * Optional. Windowed stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The windowStats. + */ + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStats getWindowStats(); + + /** + * + * + *
+   * Optional. Windowed stats.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ClientStats.WindowStats window_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.bigquery.storage.v1.ClientStats.WindowStatsOrBuilder getWindowStatsOrBuilder(); +} diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java index 20600dd1ba66..3a1827886b55 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java @@ -70,6 +70,53 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.bigquery.storage.v1.ReadRowsRequest.Builder.class); } + private int outputFormatSerializationOptionsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object outputFormatSerializationOptions_; + + public enum OutputFormatSerializationOptionsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ARROW_SERIALIZATION_OPTIONS(5), + OUTPUTFORMATSERIALIZATIONOPTIONS_NOT_SET(0); + private final int value; + + private OutputFormatSerializationOptionsCase(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 OutputFormatSerializationOptionsCase valueOf(int value) { + return forNumber(value); + } + + public static OutputFormatSerializationOptionsCase forNumber(int value) { + switch (value) { + case 5: + return ARROW_SERIALIZATION_OPTIONS; + case 0: + return OUTPUTFORMATSERIALIZATIONOPTIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OutputFormatSerializationOptionsCase getOutputFormatSerializationOptionsCase() { + return OutputFormatSerializationOptionsCase.forNumber(outputFormatSerializationOptionsCase_); + } + public static final int READ_STREAM_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -148,6 +195,76 @@ public long getOffset() { return offset_; } + public static final int ARROW_SERIALIZATION_OPTIONS_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Optional. Options specific to the Apache Arrow output format.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the arrowSerializationOptions field is set. + */ + @java.lang.Override + public boolean hasArrowSerializationOptions() { + return outputFormatSerializationOptionsCase_ == 5; + } + + /** + * + * + *
+   * Optional. Options specific to the Apache Arrow output format.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The arrowSerializationOptions. + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions + getArrowSerializationOptions() { + if (outputFormatSerializationOptionsCase_ == 5) { + return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_; + } + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Options specific to the Apache Arrow output format.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder + getArrowSerializationOptionsOrBuilder() { + if (outputFormatSerializationOptionsCase_ == 5) { + return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_; + } + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -168,6 +285,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (offset_ != 0L) { output.writeInt64(2, offset_); } + if (outputFormatSerializationOptionsCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_); + } getUnknownFields().writeTo(output); } @@ -183,6 +306,13 @@ public int getSerializedSize() { if (offset_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, offset_); } + if (outputFormatSerializationOptionsCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -201,6 +331,16 @@ public boolean equals(final java.lang.Object obj) { if (!getReadStream().equals(other.getReadStream())) return false; if (getOffset() != other.getOffset()) return false; + if (!getOutputFormatSerializationOptionsCase() + .equals(other.getOutputFormatSerializationOptionsCase())) return false; + switch (outputFormatSerializationOptionsCase_) { + case 5: + if (!getArrowSerializationOptions().equals(other.getArrowSerializationOptions())) + return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -216,6 +356,14 @@ public int hashCode() { hash = (53 * hash) + getReadStream().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + switch (outputFormatSerializationOptionsCase_) { + case 5: + hash = (37 * hash) + ARROW_SERIALIZATION_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getArrowSerializationOptions().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -358,6 +506,11 @@ public Builder clear() { bitField0_ = 0; readStream_ = ""; offset_ = 0L; + if (arrowSerializationOptionsBuilder_ != null) { + arrowSerializationOptionsBuilder_.clear(); + } + outputFormatSerializationOptionsCase_ = 0; + outputFormatSerializationOptions_ = null; return this; } @@ -388,6 +541,7 @@ public com.google.cloud.bigquery.storage.v1.ReadRowsRequest buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -402,6 +556,14 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadRowsRequest } } + private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.ReadRowsRequest result) { + result.outputFormatSerializationOptionsCase_ = outputFormatSerializationOptionsCase_; + result.outputFormatSerializationOptions_ = this.outputFormatSerializationOptions_; + if (outputFormatSerializationOptionsCase_ == 5 && arrowSerializationOptionsBuilder_ != null) { + result.outputFormatSerializationOptions_ = arrowSerializationOptionsBuilder_.build(); + } + } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ReadRowsRequest) { @@ -423,6 +585,17 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadRowsRequest ot if (other.getOffset() != 0L) { setOffset(other.getOffset()); } + switch (other.getOutputFormatSerializationOptionsCase()) { + case ARROW_SERIALIZATION_OPTIONS: + { + mergeArrowSerializationOptions(other.getArrowSerializationOptions()); + break; + } + case OUTPUTFORMATSERIALIZATIONOPTIONS_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -461,6 +634,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 42: + { + input.readMessage( + internalGetArrowSerializationOptionsFieldBuilder().getBuilder(), + extensionRegistry); + outputFormatSerializationOptionsCase_ = 5; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -478,6 +659,20 @@ public Builder mergeFrom( return this; } + private int outputFormatSerializationOptionsCase_ = 0; + private java.lang.Object outputFormatSerializationOptions_; + + public OutputFormatSerializationOptionsCase getOutputFormatSerializationOptionsCase() { + return OutputFormatSerializationOptionsCase.forNumber(outputFormatSerializationOptionsCase_); + } + + public Builder clearOutputFormatSerializationOptions() { + outputFormatSerializationOptionsCase_ = 0; + outputFormatSerializationOptions_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object readStream_ = ""; @@ -663,6 +858,273 @@ public Builder clearOffset() { return this; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder> + arrowSerializationOptionsBuilder_; + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the arrowSerializationOptions field is set. + */ + @java.lang.Override + public boolean hasArrowSerializationOptions() { + return outputFormatSerializationOptionsCase_ == 5; + } + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The arrowSerializationOptions. + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions + getArrowSerializationOptions() { + if (arrowSerializationOptionsBuilder_ == null) { + if (outputFormatSerializationOptionsCase_ == 5) { + return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_; + } + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); + } else { + if (outputFormatSerializationOptionsCase_ == 5) { + return arrowSerializationOptionsBuilder_.getMessage(); + } + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArrowSerializationOptions( + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions value) { + if (arrowSerializationOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputFormatSerializationOptions_ = value; + onChanged(); + } else { + arrowSerializationOptionsBuilder_.setMessage(value); + } + outputFormatSerializationOptionsCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setArrowSerializationOptions( + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder builderForValue) { + if (arrowSerializationOptionsBuilder_ == null) { + outputFormatSerializationOptions_ = builderForValue.build(); + onChanged(); + } else { + arrowSerializationOptionsBuilder_.setMessage(builderForValue.build()); + } + outputFormatSerializationOptionsCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeArrowSerializationOptions( + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions value) { + if (arrowSerializationOptionsBuilder_ == null) { + if (outputFormatSerializationOptionsCase_ == 5 + && outputFormatSerializationOptions_ + != com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions + .getDefaultInstance()) { + outputFormatSerializationOptions_ = + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.newBuilder( + (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + outputFormatSerializationOptions_ = value; + } + onChanged(); + } else { + if (outputFormatSerializationOptionsCase_ == 5) { + arrowSerializationOptionsBuilder_.mergeFrom(value); + } else { + arrowSerializationOptionsBuilder_.setMessage(value); + } + } + outputFormatSerializationOptionsCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearArrowSerializationOptions() { + if (arrowSerializationOptionsBuilder_ == null) { + if (outputFormatSerializationOptionsCase_ == 5) { + outputFormatSerializationOptionsCase_ = 0; + outputFormatSerializationOptions_ = null; + onChanged(); + } + } else { + if (outputFormatSerializationOptionsCase_ == 5) { + outputFormatSerializationOptionsCase_ = 0; + outputFormatSerializationOptions_ = null; + } + arrowSerializationOptionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder + getArrowSerializationOptionsBuilder() { + return internalGetArrowSerializationOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder + getArrowSerializationOptionsOrBuilder() { + if ((outputFormatSerializationOptionsCase_ == 5) + && (arrowSerializationOptionsBuilder_ != null)) { + return arrowSerializationOptionsBuilder_.getMessageOrBuilder(); + } else { + if (outputFormatSerializationOptionsCase_ == 5) { + return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_; + } + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Options specific to the Apache Arrow output format.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder> + internalGetArrowSerializationOptionsFieldBuilder() { + if (arrowSerializationOptionsBuilder_ == null) { + if (!(outputFormatSerializationOptionsCase_ == 5)) { + outputFormatSerializationOptions_ = + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); + } + arrowSerializationOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder>( + (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_, + getParentForChildren(), + isClean()); + outputFormatSerializationOptions_ = null; + } + outputFormatSerializationOptionsCase_ = 5; + onChanged(); + return arrowSerializationOptionsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ReadRowsRequest) } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java index 2865a96a8b55..ece641524a11 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java @@ -70,4 +70,57 @@ public interface ReadRowsRequestOrBuilder * @return The offset. */ long getOffset(); + + /** + * + * + *
+   * Optional. Options specific to the Apache Arrow output format.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the arrowSerializationOptions field is set. + */ + boolean hasArrowSerializationOptions(); + + /** + * + * + *
+   * Optional. Options specific to the Apache Arrow output format.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The arrowSerializationOptions. + */ + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions getArrowSerializationOptions(); + + /** + * + * + *
+   * Optional. Options specific to the Apache Arrow output format.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder + getArrowSerializationOptionsOrBuilder(); + + com.google.cloud.bigquery.storage.v1.ReadRowsRequest.OutputFormatSerializationOptionsCase + getOutputFormatSerializationOptionsCase(); } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java index c5e3e3e03f28..a8005550cf9d 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java @@ -590,6 +590,51 @@ public long getUncompressedByteSize() { return uncompressedByteSize_; } + public static final int TOTAL_ESTIMATED_ROW_COUNT_FIELD_NUMBER = 10; + private long totalEstimatedRowCount_ = 0L; + + /** + * + * + *
+   * Output only. The total estimated number of rows in the query results.
+   * Only populated when reading data from a BigQuery job.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * optional int64 total_estimated_row_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the totalEstimatedRowCount field is set. + */ + @java.lang.Override + public boolean hasTotalEstimatedRowCount() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The total estimated number of rows in the query results.
+   * Only populated when reading data from a BigQuery job.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * optional int64 total_estimated_row_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalEstimatedRowCount. + */ + @java.lang.Override + public long getTotalEstimatedRowCount() { + return totalEstimatedRowCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -628,6 +673,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(9, uncompressedByteSize_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(10, totalEstimatedRowCount_); + } getUnknownFields().writeTo(output); } @@ -669,6 +717,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, uncompressedByteSize_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, totalEstimatedRowCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -698,6 +749,10 @@ public boolean equals(final java.lang.Object obj) { if (hasUncompressedByteSize()) { if (getUncompressedByteSize() != other.getUncompressedByteSize()) return false; } + if (hasTotalEstimatedRowCount() != other.hasTotalEstimatedRowCount()) return false; + if (hasTotalEstimatedRowCount()) { + if (getTotalEstimatedRowCount() != other.getTotalEstimatedRowCount()) return false; + } if (!getRowsCase().equals(other.getRowsCase())) return false; switch (rowsCase_) { case 3: @@ -745,6 +800,10 @@ public int hashCode() { hash = (37 * hash) + UNCOMPRESSED_BYTE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUncompressedByteSize()); } + if (hasTotalEstimatedRowCount()) { + hash = (37 * hash) + TOTAL_ESTIMATED_ROW_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalEstimatedRowCount()); + } switch (rowsCase_) { case 3: hash = (37 * hash) + AVRO_ROWS_FIELD_NUMBER; @@ -945,6 +1004,7 @@ public Builder clear() { arrowSchemaBuilder_.clear(); } uncompressedByteSize_ = 0L; + totalEstimatedRowCount_ = 0L; rowsCase_ = 0; rows_ = null; schemaCase_ = 0; @@ -1003,6 +1063,10 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadRowsResponse result.uncompressedByteSize_ = uncompressedByteSize_; to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.totalEstimatedRowCount_ = totalEstimatedRowCount_; + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -1050,6 +1114,9 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadRowsResponse o if (other.hasUncompressedByteSize()) { setUncompressedByteSize(other.getUncompressedByteSize()); } + if (other.hasTotalEstimatedRowCount()) { + setTotalEstimatedRowCount(other.getTotalEstimatedRowCount()); + } switch (other.getRowsCase()) { case AVRO_ROWS: { @@ -1161,6 +1228,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 72 + case 80: + { + totalEstimatedRowCount_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2705,6 +2778,98 @@ public Builder clearUncompressedByteSize() { return this; } + private long totalEstimatedRowCount_; + + /** + * + * + *
+     * Output only. The total estimated number of rows in the query results.
+     * Only populated when reading data from a BigQuery job.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * optional int64 total_estimated_row_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the totalEstimatedRowCount field is set. + */ + @java.lang.Override + public boolean hasTotalEstimatedRowCount() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. The total estimated number of rows in the query results.
+     * Only populated when reading data from a BigQuery job.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * optional int64 total_estimated_row_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalEstimatedRowCount. + */ + @java.lang.Override + public long getTotalEstimatedRowCount() { + return totalEstimatedRowCount_; + } + + /** + * + * + *
+     * Output only. The total estimated number of rows in the query results.
+     * Only populated when reading data from a BigQuery job.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * optional int64 total_estimated_row_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The totalEstimatedRowCount to set. + * @return This builder for chaining. + */ + public Builder setTotalEstimatedRowCount(long value) { + + totalEstimatedRowCount_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The total estimated number of rows in the query results.
+     * Only populated when reading data from a BigQuery job.
+     *
+     * This feature is not yet available.
+     * 
+ * + * + * optional int64 total_estimated_row_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTotalEstimatedRowCount() { + bitField0_ = (bitField0_ & ~0x00000100); + totalEstimatedRowCount_ = 0L; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ReadRowsResponse) } diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java index 01de60e462d9..7fd437fded79 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java @@ -330,6 +330,42 @@ public interface ReadRowsResponseOrBuilder */ long getUncompressedByteSize(); + /** + * + * + *
+   * Output only. The total estimated number of rows in the query results.
+   * Only populated when reading data from a BigQuery job.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * optional int64 total_estimated_row_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the totalEstimatedRowCount field is set. + */ + boolean hasTotalEstimatedRowCount(); + + /** + * + * + *
+   * Output only. The total estimated number of rows in the query results.
+   * Only populated when reading data from a BigQuery job.
+   *
+   * This feature is not yet available.
+   * 
+ * + * + * optional int64 total_estimated_row_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The totalEstimatedRowCount. + */ + long getTotalEstimatedRowCount(); + com.google.cloud.bigquery.storage.v1.ReadRowsResponse.RowsCase getRowsCase(); com.google.cloud.bigquery.storage.v1.ReadRowsResponse.SchemaCase getSchemaCase(); diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java index b0a5b90615fc..ff0467f71217 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java @@ -136,6 +136,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ClientStats_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ClientStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -145,197 +157,249 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n.google/cloud/bigquery/storage/v1/stora" - + "ge.proto\022 google.cloud.bigquery.storage." + "\n" + + ".google/cloud/bigquery/storage/v1/storage.proto\022 google.cloud.bigquery.storage." + "v1\032\034google/api/annotations.proto\032\027google" + "/api/client.proto\032\037google/api/field_beha" + "vior.proto\032\031google/api/resource.proto\032,g" - + "oogle/cloud/bigquery/storage/v1/arrow.pr" - + "oto\032+google/cloud/bigquery/storage/v1/av" - + "ro.proto\032/google/cloud/bigquery/storage/" - + "v1/protobuf.proto\032-google/cloud/bigquery" + + "oogle/cloud/bigquery/storage/v1/arrow.proto\032+google/cloud/bigquery/storage/v1/av" + + "ro.proto\032/google/cloud/bigquery/storage/v1/protobuf.proto\032-google/cloud/bigquery" + "/storage/v1/stream.proto\032,google/cloud/b" + "igquery/storage/v1/table.proto\032\037google/p" + "rotobuf/timestamp.proto\032\036google/protobuf" - + "/wrappers.proto\032\027google/rpc/status.proto" - + "\"\347\001\n\030CreateReadSessionRequest\022C\n\006parent\030" - + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog" - + "leapis.com/Project\022H\n\014read_session\030\002 \001(\013" - + "2-.google.cloud.bigquery.storage.v1.Read" - + "SessionB\003\340A\002\022\030\n\020max_stream_count\030\003 \001(\005\022\"" - + "\n\032preferred_min_stream_count\030\004 \001(\005\"i\n\017Re" - + "adRowsRequest\022F\n\013read_stream\030\001 \001(\tB1\340A\002\372" - + "A+\n)bigquerystorage.googleapis.com/ReadS" - + "tream\022\016\n\006offset\030\002 \001(\003\")\n\rThrottleState\022\030" - + "\n\020throttle_percent\030\001 \001(\005\"\227\001\n\013StreamStats" - + "\022H\n\010progress\030\002 \001(\01326.google.cloud.bigque" - + "ry.storage.v1.StreamStats.Progress\032>\n\010Pr" - + "ogress\022\031\n\021at_response_start\030\001 \001(\001\022\027\n\017at_" - + "response_end\030\002 \001(\001\"\254\004\n\020ReadRowsResponse\022" - + "?\n\tavro_rows\030\003 \001(\0132*.google.cloud.bigque" - + "ry.storage.v1.AvroRowsH\000\022P\n\022arrow_record" - + "_batch\030\004 \001(\01322.google.cloud.bigquery.sto" - + "rage.v1.ArrowRecordBatchH\000\022\021\n\trow_count\030" - + "\006 \001(\003\022<\n\005stats\030\002 \001(\0132-.google.cloud.bigq" - + "uery.storage.v1.StreamStats\022G\n\016throttle_" - + "state\030\005 \001(\0132/.google.cloud.bigquery.stor" - + "age.v1.ThrottleState\022H\n\013avro_schema\030\007 \001(" - + "\0132,.google.cloud.bigquery.storage.v1.Avr" - + "oSchemaB\003\340A\003H\001\022J\n\014arrow_schema\030\010 \001(\0132-.g" - + "oogle.cloud.bigquery.storage.v1.ArrowSch" - + "emaB\003\340A\003H\001\022(\n\026uncompressed_byte_size\030\t \001" - + "(\003B\003\340A\001H\002\210\001\001B\006\n\004rowsB\010\n\006schemaB\031\n\027_uncom" - + "pressed_byte_size\"k\n\026SplitReadStreamRequ" - + "est\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)bigquerystora" - + "ge.googleapis.com/ReadStream\022\020\n\010fraction" - + "\030\002 \001(\001\"\247\001\n\027SplitReadStreamResponse\022D\n\016pr" - + "imary_stream\030\001 \001(\0132,.google.cloud.bigque" - + "ry.storage.v1.ReadStream\022F\n\020remainder_st" - + "ream\030\002 \001(\0132,.google.cloud.bigquery.stora" - + "ge.v1.ReadStream\"\233\001\n\030CreateWriteStreamRe" - + "quest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035bigquery." - + "googleapis.com/Table\022H\n\014write_stream\030\002 \001" - + "(\0132-.google.cloud.bigquery.storage.v1.Wr" - + "iteStreamB\003\340A\002\"\370\010\n\021AppendRowsRequest\022H\n\014" - + "write_stream\030\001 \001(\tB2\340A\002\372A,\n*bigquerystor" - + "age.googleapis.com/WriteStream\022+\n\006offset" - + "\030\002 \001(\0132\033.google.protobuf.Int64Value\022S\n\np" - + "roto_rows\030\004 \001(\0132=.google.cloud.bigquery." - + "storage.v1.AppendRowsRequest.ProtoDataH\000" - + "\022S\n\narrow_rows\030\005 \001(\0132=.google.cloud.bigq" - + "uery.storage.v1.AppendRowsRequest.ArrowD" - + "ataH\000\022\020\n\010trace_id\030\006 \001(\t\022{\n\035missing_value" - + "_interpretations\030\007 \003(\0132T.google.cloud.bi" - + "gquery.storage.v1.AppendRowsRequest.Miss" - + "ingValueInterpretationsEntry\022\201\001\n$default" - + "_missing_value_interpretation\030\010 \001(\0162N.go" - + "ogle.cloud.bigquery.storage.v1.AppendRow" - + "sRequest.MissingValueInterpretationB\003\340A\001" - + "\032\223\001\n\tArrowData\022D\n\rwriter_schema\030\001 \001(\0132-." - + "google.cloud.bigquery.storage.v1.ArrowSc" - + "hema\022@\n\004rows\030\002 \001(\01322.google.cloud.bigque" - + "ry.storage.v1.ArrowRecordBatch\032\214\001\n\tProto" - + "Data\022D\n\rwriter_schema\030\001 \001(\0132-.google.clo" - + "ud.bigquery.storage.v1.ProtoSchema\0229\n\004ro" - + "ws\030\002 \001(\0132+.google.cloud.bigquery.storage" - + ".v1.ProtoRows\032\222\001\n MissingValueInterpreta" - + "tionsEntry\022\013\n\003key\030\001 \001(\t\022]\n\005value\030\002 \001(\0162N" - + ".google.cloud.bigquery.storage.v1.Append" - + "RowsRequest.MissingValueInterpretation:\002" - + "8\001\"m\n\032MissingValueInterpretation\022,\n(MISS" - + "ING_VALUE_INTERPRETATION_UNSPECIFIED\020\000\022\016" - + "\n\nNULL_VALUE\020\001\022\021\n\rDEFAULT_VALUE\020\002B\006\n\004row" - + "s\"\373\002\n\022AppendRowsResponse\022Z\n\rappend_resul" - + "t\030\001 \001(\0132A.google.cloud.bigquery.storage." - + "v1.AppendRowsResponse.AppendResultH\000\022#\n\005" - + "error\030\002 \001(\0132\022.google.rpc.StatusH\000\022E\n\016upd" - + "ated_schema\030\003 \001(\0132-.google.cloud.bigquer" - + "y.storage.v1.TableSchema\022>\n\nrow_errors\030\004" - + " \003(\0132*.google.cloud.bigquery.storage.v1." - + "RowError\022\024\n\014write_stream\030\005 \001(\t\032;\n\014Append" - + "Result\022+\n\006offset\030\001 \001(\0132\033.google.protobuf" - + ".Int64ValueB\n\n\010response\"\232\001\n\025GetWriteStre" - + "amRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*bigquer" - + "ystorage.googleapis.com/WriteStream\022?\n\004v" - + "iew\030\003 \001(\01621.google.cloud.bigquery.storag" - + "e.v1.WriteStreamView\"s\n\036BatchCommitWrite" - + "StreamsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035" - + "bigquery.googleapis.com/Table\022\032\n\rwrite_s" - + "treams\030\002 \003(\tB\003\340A\002\"\231\001\n\037BatchCommitWriteSt" - + "reamsResponse\022/\n\013commit_time\030\001 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\022E\n\rstream_errors\030" - + "\002 \003(\0132..google.cloud.bigquery.storage.v1" - + ".StorageError\"^\n\032FinalizeWriteStreamRequ" - + "est\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*bigquerystora" - + "ge.googleapis.com/WriteStream\"0\n\033Finaliz" - + "eWriteStreamResponse\022\021\n\trow_count\030\001 \001(\003\"" - + "\211\001\n\020FlushRowsRequest\022H\n\014write_stream\030\001 \001" - + "(\tB2\340A\002\372A,\n*bigquerystorage.googleapis.c" - + "om/WriteStream\022+\n\006offset\030\002 \001(\0132\033.google." - + "protobuf.Int64Value\"#\n\021FlushRowsResponse" - + "\022\016\n\006offset\030\001 \001(\003\"\244\004\n\014StorageError\022M\n\004cod" - + "e\030\001 \001(\0162?.google.cloud.bigquery.storage." - + "v1.StorageError.StorageErrorCode\022\016\n\006enti" - + "ty\030\002 \001(\t\022\025\n\rerror_message\030\003 \001(\t\"\235\003\n\020Stor" - + "ageErrorCode\022\"\n\036STORAGE_ERROR_CODE_UNSPE" - + "CIFIED\020\000\022\023\n\017TABLE_NOT_FOUND\020\001\022\034\n\030STREAM_" - + "ALREADY_COMMITTED\020\002\022\024\n\020STREAM_NOT_FOUND\020" - + "\003\022\027\n\023INVALID_STREAM_TYPE\020\004\022\030\n\024INVALID_ST" - + "REAM_STATE\020\005\022\024\n\020STREAM_FINALIZED\020\006\022 \n\034SC" - + "HEMA_MISMATCH_EXTRA_FIELDS\020\007\022\031\n\025OFFSET_A" - + "LREADY_EXISTS\020\010\022\027\n\023OFFSET_OUT_OF_RANGE\020\t" - + "\022\025\n\021CMEK_NOT_PROVIDED\020\n\022\031\n\025INVALID_CMEK_" - + "PROVIDED\020\013\022\031\n\025CMEK_ENCRYPTION_ERROR\020\014\022\025\n" - + "\021KMS_SERVICE_ERROR\020\r\022\031\n\025KMS_PERMISSION_D" - + "ENIED\020\016\"\263\001\n\010RowError\022\r\n\005index\030\001 \001(\003\022E\n\004c" - + "ode\030\002 \001(\01627.google.cloud.bigquery.storag" - + "e.v1.RowError.RowErrorCode\022\017\n\007message\030\003 " - + "\001(\t\"@\n\014RowErrorCode\022\036\n\032ROW_ERROR_CODE_UN" - + "SPECIFIED\020\000\022\020\n\014FIELDS_ERROR\020\0012\222\006\n\014BigQue" - + "ryRead\022\351\001\n\021CreateReadSession\022:.google.cl" - + "oud.bigquery.storage.v1.CreateReadSessio" - + "nRequest\032-.google.cloud.bigquery.storage" - + ".v1.ReadSession\"i\332A$parent,read_session," - + "max_stream_count\202\323\344\223\002<\"7/v1/{read_sessio" - + "n.table=projects/*/datasets/*/tables/*}:" - + "\001*\022\317\001\n\010ReadRows\0221.google.cloud.bigquery." - + "storage.v1.ReadRowsRequest\0322.google.clou" - + "d.bigquery.storage.v1.ReadRowsResponse\"Z" - + "\332A\022read_stream,offset\202\323\344\223\002?\022=/v1/{read_s" - + "tream=projects/*/locations/*/sessions/*/" - + "streams/*}0\001\022\306\001\n\017SplitReadStream\0228.googl" - + "e.cloud.bigquery.storage.v1.SplitReadStr" - + "eamRequest\0329.google.cloud.bigquery.stora" - + "ge.v1.SplitReadStreamResponse\">\202\323\344\223\0028\0226/" - + "v1/{name=projects/*/locations/*/sessions" - + "/*/streams/*}\032{\312A\036bigquerystorage.google" - + "apis.com\322AWhttps://www.googleapis.com/au" - + "th/bigquery,https://www.googleapis.com/a" - + "uth/cloud-platform2\274\013\n\rBigQueryWrite\022\327\001\n" - + "\021CreateWriteStream\022:.google.cloud.bigque" - + "ry.storage.v1.CreateWriteStreamRequest\032-" + + "/wrappers.proto\032\027google/rpc/status.proto\"\347\001\n" + + "\030CreateReadSessionRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\022H\n" + + "\014read_session\030\002 \001(\013" + + "2-.google.cloud.bigquery.storage.v1.ReadSessionB\003\340A\002\022\030\n" + + "\020max_stream_count\030\003 \001(\005\022\"\n" + + "\032preferred_min_stream_count\030\004 \001(\005\"\371\001\n" + + "\017ReadRowsRequest\022F\n" + + "\013read_stream\030\001 \001(\tB1\340A\002\372A+\n" + + ")bigquerystorage.googleapis.com/ReadStream\022\016\n" + + "\006offset\030\002 \001(\003\022g\n" + + "\033arrow_serialization_options\030\005 \001(\0132;.google.cloud.bigqu" + + "ery.storage.v1.ArrowSerializationOptionsB\003\340A\001H\000B%\n" + + "#output_format_serialization_options\")\n\r" + + "ThrottleState\022\030\n" + + "\020throttle_percent\030\001 \001(\005\"\227\001\n" + + "\013StreamStats\022H\n" + + "\010progress\030\002 " + + "\001(\01326.google.cloud.bigquery.storage.v1.StreamStats.Progress\032>\n" + + "\010Progress\022\031\n" + + "\021at_response_start\030\001 \001(\001\022\027\n" + + "\017at_response_end\030\002 \001(\001\"\367\004\n" + + "\020ReadRowsResponse\022?\n" + + "\tavro_rows\030\003 \001(\0132*.google.cloud.bigquery.storage.v1.AvroRowsH\000\022P\n" + + "\022arrow_record_batch\030\004 \001(\01322." + + "google.cloud.bigquery.storage.v1.ArrowRecordBatchH\000\022\021\n" + + "\trow_count\030\006 \001(\003\022<\n" + + "\005stats\030\002 \001(\0132-.google.cloud.bigquery.storage.v1.StreamStats\022G\n" + + "\016throttle_state\030\005 \001(\0132/.g" + + "oogle.cloud.bigquery.storage.v1.ThrottleState\022H\n" + + "\013avro_schema\030\007 \001(\0132,.google.clou" + + "d.bigquery.storage.v1.AvroSchemaB\003\340A\003H\001\022J\n" + + "\014arrow_schema\030\010" + + " \001(\0132-.google.cloud.bigquery.storage.v1.ArrowSchemaB\003\340A\003H\001\022(\n" + + "\026uncompressed_byte_size\030\t \001(\003B\003\340A\001H\002\210\001\001\022+\n" + + "\031total_estimated_row_count\030\n" + + " \001(\003B\003\340A\003H\003\210\001\001B\006\n" + + "\004rowsB\010\n" + + "\006schemaB\031\n" + + "\027_uncompressed_byte_sizeB\034\n" + + "\032_total_estimated_row_count\"k\n" + + "\026SplitReadStreamRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")bigquerystorage.googleapis.com/ReadStream\022\020\n" + + "\010fraction\030\002 \001(\001\"\247\001\n" + + "\027SplitReadStreamResponse\022D\n" + + "\016primary_stream\030\001 \001(\0132," + + ".google.cloud.bigquery.storage.v1.ReadStream\022F\n" + + "\020remainder_stream\030\002" + + " \001(\0132,.google.cloud.bigquery.storage.v1.ReadStream\"\233\001\n" + + "\030CreateWriteStreamRequest\0225\n" + + "\006parent\030\001 \001(\tB%\340A\002\372A\037\n" + + "\035bigquery.googleapis.com/Table\022H\n" + + "\014write_stream\030\002" + + " \001(\0132-.google.cloud.bigquery.storage.v1.WriteStreamB\003\340A\002\"\302\t\n" + + "\021AppendRowsRequest\022H\n" + + "\014write_stream\030\001 \001(\tB2\340A\002\372A,\n" + + "*bigquerystorage.googleapis.com/WriteStream\022+\n" + + "\006offset\030\002 \001(\0132\033.google.protobuf.Int64Value\022S\n\n" + + "proto_rows\030\004 \001(\0132=.go" + + "ogle.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataH\000\022S\n\n" + + "arrow_rows\030\005 \001(\013" + + "2=.google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowDataH\000\022\020\n" + + "\010trace_id\030\006 \001(\t\022{\n" + + "\035missing_value_interpretations\030\007 \003" + + "(\0132T.google.cloud.bigquery.storage.v1.Ap" + + "pendRowsRequest.MissingValueInterpretationsEntry\022\201\001\n" + + "$default_missing_value_interpretation\030\010 \001(\0162N.google.cloud.bigquery." + + "storage.v1.AppendRowsRequest.MissingValueInterpretationB\003\340A\001\022H\n" + + "\014client_stats\030\t \001" + + "(\0132-.google.cloud.bigquery.storage.v1.ClientStatsB\003\340A\001\032\223\001\n" + + "\tArrowData\022D\n\r" + + "writer_schema\030\001 \001(\0132-.google.cloud.bigquery.storage.v1.ArrowSchema\022@\n" + + "\004rows\030\002 \001(\01322.googl" + + "e.cloud.bigquery.storage.v1.ArrowRecordBatch\032\214\001\n" + + "\tProtoData\022D\n\r" + + "writer_schema\030\001 \001(\0132-.google.cloud.bigquery.storage.v1.ProtoSchema\0229\n" + + "\004rows\030\002 \001(\0132+.google.cloud.bigquery.storage.v1.ProtoRows\032\222\001\n" + + " MissingValueInterpretationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022]\n" + + "\005value\030\002 \001(\0162N.google.cloud.bigquery.sto" + + "rage.v1.AppendRowsRequest.MissingValueInterpretation:\0028\001\"m\n" + + "\032MissingValueInterpretation\022,\n" + + "(MISSING_VALUE_INTERPRETATION_UNSPECIFIED\020\000\022\016\n\n" + + "NULL_VALUE\020\001\022\021\n\r" + + "DEFAULT_VALUE\020\002B\006\n" + + "\004rows\"\373\002\n" + + "\022AppendRowsResponse\022Z\n\r" + + "append_result\030\001 \001(\0132A.google.cloud.big" + + "query.storage.v1.AppendRowsResponse.AppendResultH\000\022#\n" + + "\005error\030\002 \001(\0132\022.google.rpc.StatusH\000\022E\n" + + "\016updated_schema\030\003 \001(\0132-.google" + + ".cloud.bigquery.storage.v1.TableSchema\022>\n\n" + + "row_errors\030\004 \003(\0132*.google.cloud.bigquery.storage.v1.RowError\022\024\n" + + "\014write_stream\030\005 \001(\t\032;\n" + + "\014AppendResult\022+\n" + + "\006offset\030\001 \001(\0132\033.google.protobuf.Int64ValueB\n\n" + + "\010response\"\232\001\n" + + "\025GetWriteStreamRequest\022@\n" + + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*bigquerystorage.googleapis.com/WriteStream\022?\n" + + "\004view\030\003 \001(\01621.google.cloud.bigquery.storage.v1.WriteStreamView\"s\n" + + "\036BatchCommitWriteStreamsRequest\0225\n" + + "\006parent\030\001 \001(\tB%\340A\002\372A\037\n" + + "\035bigquery.googleapis.com/Table\022\032\n\r" + + "write_streams\030\002 \003(\tB\003\340A\002\"\231\001\n" + + "\037BatchCommitWriteStreamsResponse\022/\n" + + "\013commit_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022E\n\r" + + "stream_errors\030\002 \003(\0132..google.cloud.bigquery.storage.v1.StorageError\"^\n" + + "\032FinalizeWriteStreamRequest\022@\n" + + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*bigquerystorage.googleapis.com/WriteStream\"0\n" + + "\033FinalizeWriteStreamResponse\022\021\n" + + "\trow_count\030\001 \001(\003\"\211\001\n" + + "\020FlushRowsRequest\022H\n" + + "\014write_stream\030\001 \001(\tB2\340A\002\372A,\n" + + "*bigquerystorage.googleapis.com/WriteStream\022+\n" + + "\006offset\030\002 \001(\0132\033.google.protobuf.Int64Value\"#\n" + + "\021FlushRowsResponse\022\016\n" + + "\006offset\030\001 \001(\003\"\244\004\n" + + "\014StorageError\022M\n" + + "\004code\030\001 \001(\0162?.google.cloud.big" + + "query.storage.v1.StorageError.StorageErrorCode\022\016\n" + + "\006entity\030\002 \001(\t\022\025\n\r" + + "error_message\030\003 \001(\t\"\235\003\n" + + "\020StorageErrorCode\022\"\n" + + "\036STORAGE_ERROR_CODE_UNSPECIFIED\020\000\022\023\n" + + "\017TABLE_NOT_FOUND\020\001\022\034\n" + + "\030STREAM_ALREADY_COMMITTED\020\002\022\024\n" + + "\020STREAM_NOT_FOUND\020\003\022\027\n" + + "\023INVALID_STREAM_TYPE\020\004\022\030\n" + + "\024INVALID_STREAM_STATE\020\005\022\024\n" + + "\020STREAM_FINALIZED\020\006\022 \n" + + "\034SCHEMA_MISMATCH_EXTRA_FIELDS\020\007\022\031\n" + + "\025OFFSET_ALREADY_EXISTS\020\010\022\027\n" + + "\023OFFSET_OUT_OF_RANGE\020\t\022\025\n" + + "\021CMEK_NOT_PROVIDED\020\n" + + "\022\031\n" + + "\025INVALID_CMEK_PROVIDED\020\013\022\031\n" + + "\025CMEK_ENCRYPTION_ERROR\020\014\022\025\n" + + "\021KMS_SERVICE_ERROR\020\r" + + "\022\031\n" + + "\025KMS_PERMISSION_DENIED\020\016\"\263\001\n" + + "\010RowError\022\r\n" + + "\005index\030\001 \001(\003\022E\n" + + "\004code\030\002 \001(\01627.google.cloud.b" + + "igquery.storage.v1.RowError.RowErrorCode\022\017\n" + + "\007message\030\003 \001(\t\"@\n" + + "\014RowErrorCode\022\036\n" + + "\032ROW_ERROR_CODE_UNSPECIFIED\020\000\022\020\n" + + "\014FIELDS_ERROR\020\001\"\226\007\n" + + "\013ClientStats\022V\n\r" + + "request_stats\030\001 \001" + + "(\0132:.google.cloud.bigquery.storage.v1.ClientStats.RequestStatsB\003\340A\001\022T\n" + + "\014window_stats\030\002" + + " \001(\01329.google.cloud.bigquery.storage.v1.ClientStats.WindowStatsB\003\340A\001\032\212\001\n" + + "\014RequestStats\022\"\n" + + "\020send_time_millis\030\001 \001(\003B\003\340A\001H\000\210\001\001\022\'\n" + + "\025queued_requests_count\030\002 \001(\003B\003\340A\001H\001\210\001\001B\023\n" + + "\021_send_time_millisB\030\n" + + "\026_queued_requests_count\032\313\004\n" + + "\013WindowStats\022-\n" + + "\033max_response_latency_millis\030\001" + + " \001(\003B\003\340A\001H\000\210\001\001\022-\n" + + "\033avg_response_latency_millis\030\002" + + " \001(\003B\003\340A\001H\001\210\001\001\0221\n" + + "\037longest_wait_no_response_millis\030\003" + + " \001(\003B\003\340A\001H\002\210\001\001\022%\n" + + "\023requests_sent_count\030\004 \001(\003B\003\340A\001H\003\210\001\001\022*\n" + + "\030responses_received_count\030\005 \001(\003B\003\340A\001H\004\210\001\001\022\"\n" + + "\020bytes_sent_count\030\006 \001(\003B\003\340A\001H\005\210\001\001\0220\n" + + "\036window_start_time_epoch_millis\030\007" + + " \001(\003B\003\340A\001H\006\210\001\001\022\037\n\r" + + "window_millis\030\010 \001(\003B\003\340A\001H\007\210\001\001B\036\n" + + "\034_max_response_latency_millisB\036\n" + + "\034_avg_response_latency_millisB\"\n" + + " _longest_wait_no_response_millisB\026\n" + + "\024_requests_sent_countB\033\n" + + "\031_responses_received_countB\023\n" + + "\021_bytes_sent_countB!\n" + + "\037_window_start_time_epoch_millisB\020\n" + + "\016_window_millis2\222\006\n" + + "\014BigQueryRead\022\351\001\n" + + "\021CreateReadSession\022:.google.cloud.bigquery.storage.v1.C" + + "reateReadSessionRequest\032-.google.cloud.b" + + "igquery.storage.v1.ReadSession\"i\332A$paren" + + "t,read_session,max_stream_count\202\323\344\223\002<\"7/" + + "v1/{read_session.table=projects/*/datasets/*/tables/*}:\001*\022\317\001\n" + + "\010ReadRows\0221.google.cloud.bigquery.storage.v1.ReadRowsReques" + + "t\0322.google.cloud.bigquery.storage.v1.Rea" + + "dRowsResponse\"Z\332A\022read_stream,offset\202\323\344\223" + + "\002?\022=/v1/{read_stream=projects/*/locations/*/sessions/*/streams/*}0\001\022\306\001\n" + + "\017SplitReadStream\0228.google.cloud.bigquery.storage." + + "v1.SplitReadStreamRequest\0329.google.cloud.bigquery.storage.v1.SplitReadStreamResp" + + "onse\">\202\323\344\223\0028\0226/v1/{name=projects/*/locat" + + "ions/*/sessions/*/streams/*}\032{\312A\036bigquer" + + "ystorage.googleapis.com\322AWhttps://www.go" + + "ogleapis.com/auth/bigquery,https://www.googleapis.com/auth/cloud-platform2\274\013\n\r" + + "BigQueryWrite\022\327\001\n" + + "\021CreateWriteStream\022:.google.cloud.bigquery.storage.v1.CreateWrite" + + "StreamRequest\032-.google.cloud.bigquery.st" + + "orage.v1.WriteStream\"W\332A\023parent,write_st" + + "ream\202\323\344\223\002;\"+/v1/{parent=projects/*/datasets/*/tables/*}:\014write_stream\022\322\001\n\n" + + "AppendRows\0223.google.cloud.bigquery.storage.v1." + + "AppendRowsRequest\0324.google.cloud.bigquer" + + "y.storage.v1.AppendRowsResponse\"U\332A\014writ" + + "e_stream\202\323\344\223\002@\";/v1/{write_stream=projec" + + "ts/*/datasets/*/tables/*/streams/*}:\001*(\0010\001\022\277\001\n" + + "\016GetWriteStream\0227.google.cloud.bigquery.storage.v1.GetWriteStreamRequest\032-" + ".google.cloud.bigquery.storage.v1.WriteS" - + "tream\"W\332A\023parent,write_stream\202\323\344\223\002;\"+/v1" - + "/{parent=projects/*/datasets/*/tables/*}" - + ":\014write_stream\022\322\001\n\nAppendRows\0223.google.c" - + "loud.bigquery.storage.v1.AppendRowsReque" - + "st\0324.google.cloud.bigquery.storage.v1.Ap" - + "pendRowsResponse\"U\332A\014write_stream\202\323\344\223\002@\"" - + ";/v1/{write_stream=projects/*/datasets/*" - + "/tables/*/streams/*}:\001*(\0010\001\022\277\001\n\016GetWrite" - + "Stream\0227.google.cloud.bigquery.storage.v" - + "1.GetWriteStreamRequest\032-.google.cloud.b" - + "igquery.storage.v1.WriteStream\"E\332A\004name\202" - + "\323\344\223\0028\"3/v1/{name=projects/*/datasets/*/t" - + "ables/*/streams/*}:\001*\022\331\001\n\023FinalizeWriteS" - + "tream\022<.google.cloud.bigquery.storage.v1" - + ".FinalizeWriteStreamRequest\032=.google.clo" - + "ud.bigquery.storage.v1.FinalizeWriteStre" - + "amResponse\"E\332A\004name\202\323\344\223\0028\"3/v1/{name=pro" - + "jects/*/datasets/*/tables/*/streams/*}:\001" - + "*\022\334\001\n\027BatchCommitWriteStreams\022@.google.c" - + "loud.bigquery.storage.v1.BatchCommitWrit" - + "eStreamsRequest\032A.google.cloud.bigquery." - + "storage.v1.BatchCommitWriteStreamsRespon" - + "se\"<\332A\006parent\202\323\344\223\002-\022+/v1/{parent=project" - + "s/*/datasets/*/tables/*}\022\313\001\n\tFlushRows\0222" - + ".google.cloud.bigquery.storage.v1.FlushR" - + "owsRequest\0323.google.cloud.bigquery.stora" - + "ge.v1.FlushRowsResponse\"U\332A\014write_stream" - + "\202\323\344\223\002@\";/v1/{write_stream=projects/*/dat" - + "asets/*/tables/*/streams/*}:\001*\032\260\001\312A\036bigq" - + "uerystorage.googleapis.com\322A\213\001https://ww" - + "w.googleapis.com/auth/bigquery,https://w" - + "ww.googleapis.com/auth/bigquery.insertda" - + "ta,https://www.googleapis.com/auth/cloud" - + "-platformB\224\002\n$com.google.cloud.bigquery." - + "storage.v1B\014StorageProtoP\001Z>cloud.google" - + ".com/go/bigquery/storage/apiv1/storagepb" - + ";storagepb\252\002 Google.Cloud.BigQuery.Stora" - + "ge.V1\312\002 Google\\Cloud\\BigQuery\\Storage\\V1" - + "\352AU\n\035bigquery.googleapis.com/Table\0224proj" - + "ects/{project}/datasets/{dataset}/tables" - + "/{table}b\006proto3" + + "tream\"E\332A\004name\202\323\344\223\0028\"3/v1/{name=projects/*/datasets/*/tables/*/streams/*}:\001*\022\331\001\n" + + "\023FinalizeWriteStream\022<.google.cloud.bigquery.storage.v1.FinalizeWriteStreamReque" + + "st\032=.google.cloud.bigquery.storage.v1.Fi" + + "nalizeWriteStreamResponse\"E\332A\004name\202\323\344\223\0028" + + "\"3/v1/{name=projects/*/datasets/*/tables/*/streams/*}:\001*\022\334\001\n" + + "\027BatchCommitWriteStreams\022@.google.cloud.bigquery.storage.v1." + + "BatchCommitWriteStreamsRequest\032A.google.cloud.bigquery.storage.v1.BatchCommitWri" + + "teStreamsResponse\"<\332A\006parent\202\323\344\223\002-\022+/v1/" + + "{parent=projects/*/datasets/*/tables/*}\022\313\001\n" + + "\tFlushRows\0222.google.cloud.bigquery.storage.v1.FlushRowsRequest\0323.google.cloud" + + ".bigquery.storage.v1.FlushRowsResponse\"U" + + "\332A\014write_stream\202\323\344\223\002@\";/v1/{write_stream" + + "=projects/*/datasets/*/tables/*/streams/" + + "*}:\001*\032\260\001\312A\036bigquerystorage.googleapis.co" + + "m\322A\213\001https://www.googleapis.com/auth/big" + + "query,https://www.googleapis.com/auth/bi" + + "gquery.insertdata,https://www.googleapis.com/auth/cloud-platformB\224\002\n" + + "$com.google.cloud.bigquery.storage.v1B\014StorageProtoP" + + "\001Z>cloud.google.com/go/bigquery/storage/apiv1/storagepb;storagepb\252\002" + + " Google.Cloud.BigQuery.Storage.V1\312\002 Google\\Cloud\\BigQuery\\Storage\\V1\352AU\n" + + "\035bigquery.googleapis.com/Table\0224projects/{project}/datasets/{" + + "dataset}/tables/{table}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -368,7 +432,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor, new java.lang.String[] { - "ReadStream", "Offset", + "ReadStream", + "Offset", + "ArrowSerializationOptions", + "OutputFormatSerializationOptions", }); internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor = getDescriptor().getMessageType(2); @@ -408,6 +475,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AvroSchema", "ArrowSchema", "UncompressedByteSize", + "TotalEstimatedRowCount", "Rows", "Schema", }); @@ -448,6 +516,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TraceId", "MissingValueInterpretations", "DefaultMissingValueInterpretation", + "ClientStats", "Rows", }); internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ArrowData_descriptor = @@ -566,6 +635,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Index", "Code", "Message", }); + internal_static_google_cloud_bigquery_storage_v1_ClientStats_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_bigquery_storage_v1_ClientStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ClientStats_descriptor, + new java.lang.String[] { + "RequestStats", "WindowStats", + }); + internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_descriptor = + internal_static_google_cloud_bigquery_storage_v1_ClientStats_descriptor.getNestedType(0); + internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ClientStats_RequestStats_descriptor, + new java.lang.String[] { + "SendTimeMillis", "QueuedRequestsCount", + }); + internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_descriptor = + internal_static_google_cloud_bigquery_storage_v1_ClientStats_descriptor.getNestedType(1); + internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ClientStats_WindowStats_descriptor, + new java.lang.String[] { + "MaxResponseLatencyMillis", + "AvgResponseLatencyMillis", + "LongestWaitNoResponseMillis", + "RequestsSentCount", + "ResponsesReceivedCount", + "BytesSentCount", + "WindowStartTimeEpochMillis", + "WindowMillis", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto index 0132aab1935b..d676930eb286 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/arrow.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. diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto index 6082fa58d86e..f4bede896014 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/avro.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. diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto index 2713e057839f..130673efa015 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.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. diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/storage.proto b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/storage.proto index dc0ae7f9f4d8..9b709dac33d6 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/storage.proto +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/storage.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. @@ -279,6 +279,18 @@ message ReadRowsRequest { // Requesting a larger offset is undefined. If not specified, start reading // from offset zero. int64 offset = 2; + + // Specifies output serialization options. Only job _default streams are + // supported. + // + // This feature is not yet available. + oneof output_format_serialization_options { + // Optional. Options specific to the Apache Arrow output format. + // + // This feature is not yet available. + ArrowSerializationOptions arrow_serialization_options = 5 + [(google.api.field_behavior) = OPTIONAL]; + } } // Information on if the current connection is being throttled. @@ -365,6 +377,13 @@ message ReadRowsResponse { // greater than 0, the client should skip decompression. optional int64 uncompressed_byte_size = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The total estimated number of rows in the query results. + // Only populated when reading data from a BigQuery job. + // + // This feature is not yet available. + optional int64 total_estimated_row_count = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request message for `SplitReadStream`. @@ -419,7 +438,7 @@ message CreateWriteStreamRequest { // switching table destinations. You can also switch table destinations within // the same connection for the default stream. // -// The size of a single AppendRowsRequest must be less than 10 MB in size. +// The size of a single AppendRowsRequest must be less than 20 MB in size. // Requests larger than this return an error, typically `INVALID_ARGUMENT`. message AppendRowsRequest { // Arrow schema and data. @@ -559,6 +578,9 @@ message AppendRowsRequest { // time, set `missing_value_interpretations` to `NULL_VALUE` on those columns. MissingValueInterpretation default_missing_value_interpretation = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Stats and telemetry data gathered on the client side. + ClientStats client_stats = 9 [(google.api.field_behavior) = OPTIONAL]; } // Response message for `AppendRows`. @@ -784,3 +806,68 @@ message RowError { // Description of the issue encountered when processing the row. string message = 3; } + +// Stats and telemetry data gathered on the client side about requests +// being sent to the BigQuery Storage service, for internal use only. +message ClientStats { + // Stats and telemetry data gathered on the client side about a single + // request. + message RequestStats { + // Optional. Timestamp indicating when the request was sent over the + // network, expressed in epoch milliseconds. + optional int64 send_time_millis = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of pending requests at the moment this request was sent. + // This includes requests waiting to be sent, and those that are inflight. + optional int64 queued_requests_count = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Aggregate connection metrics over a window interval. + message WindowStats { + // Optional. The maximum response latency observed in the window, expressed + // in milliseconds. + optional int64 max_response_latency_millis = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The average response latency observed in the window, expressed + // in milliseconds. + optional int64 avg_response_latency_millis = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The longest time spent waiting without receiving a response in + // the window. This could exceed max_response_latency_millis because the + // latter is evaluated only when a response is received. Expressed in + // milliseconds. + optional int64 longest_wait_no_response_millis = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How many requests were sent in the window. + optional int64 requests_sent_count = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How many responses were received in the window. + optional int64 responses_received_count = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How many bytes were sent in the window. + optional int64 bytes_sent_count = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Start time of the window interval for which these stats are + // aggregated, expressed in epoch milliseconds. + optional int64 window_start_time_epoch_millis = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Duration of the window interval for which these stats are + // aggregated, expressed in milliseconds. + optional int64 window_millis = 8 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Per-request stats. + RequestStats request_stats = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Windowed stats. + WindowStats window_stats = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/stream.proto b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/stream.proto index f0d1dfef5c3e..f70816e6f354 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/stream.proto +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/stream.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. diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto index 30c30228c27c..a25c4c442a46 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.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. diff --git a/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlags.java b/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlags.java index 2b8765cf13bb..6eeecfe6e19e 100644 --- a/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlags.java +++ b/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlags.java @@ -311,6 +311,26 @@ public boolean getSessionsRequired() { return sessionsRequired_; } + public static final int MICROSECOND_TIMESTAMP_FIELD_NUMBER = 14; + private boolean microsecondTimestamp_ = false; + + /** + * + * + *
+   * Optional. Indicates whether the client supports microsecond precision
+   * timestamps.
+   * 
+ * + * bool microsecond_timestamp = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The microsecondTimestamp. + */ + @java.lang.Override + public boolean getMicrosecondTimestamp() { + return microsecondTimestamp_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -361,6 +381,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sessionsRequired_ != false) { output.writeBool(13, sessionsRequired_); } + if (microsecondTimestamp_ != false) { + output.writeBool(14, microsecondTimestamp_); + } getUnknownFields().writeTo(output); } @@ -406,6 +429,9 @@ public int getSerializedSize() { if (sessionsRequired_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, sessionsRequired_); } + if (microsecondTimestamp_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, microsecondTimestamp_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -433,6 +459,7 @@ public boolean equals(final java.lang.Object obj) { if (getPeerInfo() != other.getPeerInfo()) return false; if (getSessionsCompatible() != other.getSessionsCompatible()) return false; if (getSessionsRequired() != other.getSessionsRequired()) return false; + if (getMicrosecondTimestamp() != other.getMicrosecondTimestamp()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -468,6 +495,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSessionsCompatible()); hash = (37 * hash) + SESSIONS_REQUIRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSessionsRequired()); + hash = (37 * hash) + MICROSECOND_TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMicrosecondTimestamp()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -626,6 +655,7 @@ public Builder clear() { peerInfo_ = false; sessionsCompatible_ = false; sessionsRequired_ = false; + microsecondTimestamp_ = false; return this; } @@ -697,6 +727,9 @@ private void buildPartial0(com.google.bigtable.v2.FeatureFlags result) { if (((from_bitField0_ & 0x00000800) != 0)) { result.sessionsRequired_ = sessionsRequired_; } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.microsecondTimestamp_ = microsecondTimestamp_; + } } @java.lang.Override @@ -747,6 +780,9 @@ public Builder mergeFrom(com.google.bigtable.v2.FeatureFlags other) { if (other.getSessionsRequired() != false) { setSessionsRequired(other.getSessionsRequired()); } + if (other.getMicrosecondTimestamp() != false) { + setMicrosecondTimestamp(other.getMicrosecondTimestamp()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -845,6 +881,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 104 + case 112: + { + microsecondTimestamp_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 112 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1560,6 +1602,65 @@ public Builder clearSessionsRequired() { return this; } + private boolean microsecondTimestamp_; + + /** + * + * + *
+     * Optional. Indicates whether the client supports microsecond precision
+     * timestamps.
+     * 
+ * + * bool microsecond_timestamp = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The microsecondTimestamp. + */ + @java.lang.Override + public boolean getMicrosecondTimestamp() { + return microsecondTimestamp_; + } + + /** + * + * + *
+     * Optional. Indicates whether the client supports microsecond precision
+     * timestamps.
+     * 
+ * + * bool microsecond_timestamp = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The microsecondTimestamp to set. + * @return This builder for chaining. + */ + public Builder setMicrosecondTimestamp(boolean value) { + + microsecondTimestamp_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Indicates whether the client supports microsecond precision
+     * timestamps.
+     * 
+ * + * bool microsecond_timestamp = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMicrosecondTimestamp() { + bitField0_ = (bitField0_ & ~0x00001000); + microsecondTimestamp_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.FeatureFlags) } diff --git a/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlagsOrBuilder.java b/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlagsOrBuilder.java index a967bd990564..bc3f7c261ded 100644 --- a/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlagsOrBuilder.java +++ b/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlagsOrBuilder.java @@ -189,4 +189,18 @@ public interface FeatureFlagsOrBuilder * @return The sessionsRequired. */ boolean getSessionsRequired(); + + /** + * + * + *
+   * Optional. Indicates whether the client supports microsecond precision
+   * timestamps.
+   * 
+ * + * bool microsecond_timestamp = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The microsecondTimestamp. + */ + boolean getMicrosecondTimestamp(); } diff --git a/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlagsProto.java b/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlagsProto.java index e02dac04c178..c198db571bf3 100644 --- a/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlagsProto.java +++ b/java-bigtable/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/FeatureFlagsProto.java @@ -54,25 +54,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n&google/bigtable/v2/feature_flags.proto" - + "\022\022google.bigtable.v2\"\351\002\n\014FeatureFlags\022\025\n" - + "\rreverse_scans\030\001 \001(\010\022\036\n\026mutate_rows_rate" - + "_limit\030\003 \001(\010\022\037\n\027mutate_rows_rate_limit2\030" - + "\005 \001(\010\022\"\n\032last_scanned_row_responses\030\004 \001(" - + "\010\022\026\n\016routing_cookie\030\006 \001(\010\022\022\n\nretry_info\030" - + "\007 \001(\010\022#\n\033client_side_metrics_enabled\030\010 \001" - + "(\010\022 \n\030traffic_director_enabled\030\t \001(\010\022\037\n\027" - + "direct_access_requested\030\n \001(\010\022\021\n\tpeer_in" - + "fo\030\013 \001(\010\022\033\n\023sessions_compatible\030\014 \001(\010\022\031\n" - + "\021sessions_required\030\r \001(\010B\273\001\n\026com.google." - + "bigtable.v2B\021FeatureFlagsProtoP\001Z8cloud." - + "google.com/go/bigtable/apiv2/bigtablepb;" - + "bigtablepb\252\002\030Google.Cloud.Bigtable.V2\312\002\030" - + "Google\\Cloud\\Bigtable\\V2\352\002\033Google::Cloud" - + "::Bigtable::V2b\006proto3" + + "\022\022google.bigtable.v2\032\037google/api/field_b" + + "ehavior.proto\"\215\003\n\014FeatureFlags\022\025\n\rrevers" + + "e_scans\030\001 \001(\010\022\036\n\026mutate_rows_rate_limit\030" + + "\003 \001(\010\022\037\n\027mutate_rows_rate_limit2\030\005 \001(\010\022\"" + + "\n\032last_scanned_row_responses\030\004 \001(\010\022\026\n\016ro" + + "uting_cookie\030\006 \001(\010\022\022\n\nretry_info\030\007 \001(\010\022#" + + "\n\033client_side_metrics_enabled\030\010 \001(\010\022 \n\030t" + + "raffic_director_enabled\030\t \001(\010\022\037\n\027direct_" + + "access_requested\030\n \001(\010\022\021\n\tpeer_info\030\013 \001(" + + "\010\022\033\n\023sessions_compatible\030\014 \001(\010\022\031\n\021sessio" + + "ns_required\030\r \001(\010\022\"\n\025microsecond_timesta" + + "mp\030\016 \001(\010B\003\340A\001B\273\001\n\026com.google.bigtable.v2" + + "B\021FeatureFlagsProtoP\001Z8cloud.google.com/" + + "go/bigtable/apiv2/bigtablepb;bigtablepb\252" + + "\002\030Google.Cloud.Bigtable.V2\312\002\030Google\\Clou" + + "d\\Bigtable\\V2\352\002\033Google::Cloud::Bigtable:" + + ":V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); internal_static_google_bigtable_v2_FeatureFlags_descriptor = getDescriptor().getMessageType(0); internal_static_google_bigtable_v2_FeatureFlags_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( @@ -90,8 +95,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PeerInfo", "SessionsCompatible", "SessionsRequired", + "MicrosecondTimestamp", }); descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-bigtable/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/feature_flags.proto b/java-bigtable/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/feature_flags.proto index 6cf9ca5b81ac..6f9c68d9d79b 100644 --- a/java-bigtable/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/feature_flags.proto +++ b/java-bigtable/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/feature_flags.proto @@ -16,6 +16,8 @@ syntax = "proto3"; package google.bigtable.v2; +import "google/api/field_behavior.proto"; + option csharp_namespace = "Google.Cloud.Bigtable.V2"; option go_package = "cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepb"; option java_multiple_files = true; @@ -76,4 +78,8 @@ message FeatureFlags { // Internal flag to force sessions for internal projects. bool sessions_required = 13; + + // Optional. Indicates whether the client supports microsecond precision + // timestamps. + bool microsecond_timestamp = 14 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java index cd247c0a553c..f7ff426a02d4 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java @@ -1696,6 +1696,7 @@ public final ListMessagesPagedResponse listMessages(String parent) { * .setFilter("filter-1274492040") * .setOrderBy("orderBy-1207110587") * .setShowDeleted(true) + * .setMarkupSyntax(MarkupSyntax.forNumber(0)) * .build(); * for (Message element : chatServiceClient.listMessages(request).iterateAll()) { * // doThingsWith(element); @@ -1752,6 +1753,7 @@ public final ListMessagesPagedResponse listMessages(ListMessagesRequest request) * .setFilter("filter-1274492040") * .setOrderBy("orderBy-1207110587") * .setShowDeleted(true) + * .setMarkupSyntax(MarkupSyntax.forNumber(0)) * .build(); * ApiFuture future = chatServiceClient.listMessagesPagedCallable().futureCall(request); * // Do something. @@ -1808,6 +1810,7 @@ public final ListMessagesPagedResponse listMessages(ListMessagesRequest request) * .setFilter("filter-1274492040") * .setOrderBy("orderBy-1207110587") * .setShowDeleted(true) + * .setMarkupSyntax(MarkupSyntax.forNumber(0)) * .build(); * while (true) { * ListMessagesResponse response = chatServiceClient.listMessagesCallable().call(request); @@ -2488,6 +2491,7 @@ public final Message getMessage(String name) { * GetMessageRequest request = * GetMessageRequest.newBuilder() * .setName(MessageName.of("[SPACE]", "[MESSAGE]").toString()) + * .setMarkupSyntax(MarkupSyntax.forNumber(0)) * .build(); * Message response = chatServiceClient.getMessage(request); * } @@ -2538,6 +2542,7 @@ public final Message getMessage(GetMessageRequest request) { * GetMessageRequest request = * GetMessageRequest.newBuilder() * .setName(MessageName.of("[SPACE]", "[MESSAGE]").toString()) + * .setMarkupSyntax(MarkupSyntax.forNumber(0)) * .build(); * ApiFuture future = chatServiceClient.getMessageCallable().futureCall(request); * // Do something. @@ -3199,6 +3204,7 @@ public final SearchMessagesPagedResponse searchMessages(String parent, String fi * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOrderBy("orderBy-1207110587") + * .setMarkupSyntax(MarkupSyntax.forNumber(0)) * .build(); * for (SearchMessageResult element : chatServiceClient.searchMessages(request).iterateAll()) { * // doThingsWith(element); @@ -3255,6 +3261,7 @@ public final SearchMessagesPagedResponse searchMessages(SearchMessagesRequest re * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOrderBy("orderBy-1207110587") + * .setMarkupSyntax(MarkupSyntax.forNumber(0)) * .build(); * ApiFuture future = * chatServiceClient.searchMessagesPagedCallable().futureCall(request); @@ -3312,6 +3319,7 @@ public final SearchMessagesPagedResponse searchMessages(SearchMessagesRequest re * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOrderBy("orderBy-1207110587") + * .setMarkupSyntax(MarkupSyntax.forNumber(0)) * .build(); * while (true) { * SearchMessagesResponse response = chatServiceClient.searchMessagesCallable().call(request); diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java index 10c4917165bc..1682446e1d32 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java @@ -207,6 +207,9 @@ public class ChatServiceStubSettings extends StubSettings serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam( + fields, "markupSyntax", request.getMarkupSyntaxValue()); serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); @@ -323,6 +325,8 @@ public class HttpJsonChatServiceStub extends ChatServiceStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "markupSyntax", request.getMarkupSyntaxValue()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) diff --git a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json index e8dcee982f4f..aaeb71985837 100644 --- a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json +++ b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json @@ -3023,6 +3023,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.MarkupSyntax", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.MatchedUrl", "queryAllDeclaredConstructors": true, diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java index 8573d297a97f..d70c3f2f465a 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java @@ -120,6 +120,7 @@ public void createMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -194,6 +195,7 @@ public void createMessageTest2() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -560,6 +562,7 @@ public void getMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -630,6 +633,7 @@ public void getMessageTest2() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -700,6 +704,7 @@ public void updateMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -732,6 +737,7 @@ public void updateMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -790,6 +796,7 @@ public void updateMessageExceptionTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateMessage(message, updateMask); diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java index 73b39d3e206f..72336cfa4a72 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java @@ -123,6 +123,7 @@ public void createMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockChatService.addResponse(expectedResponse); @@ -193,6 +194,7 @@ public void createMessageTest2() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockChatService.addResponse(expectedResponse); @@ -519,6 +521,7 @@ public void getMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockChatService.addResponse(expectedResponse); @@ -583,6 +586,7 @@ public void getMessageTest2() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockChatService.addResponse(expectedResponse); @@ -647,6 +651,7 @@ public void updateMessageTest() throws Exception { .setQuotedMessageMetadata(QuotedMessageMetadata.newBuilder().build()) .addAllAttachedGifs(new ArrayList()) .addAllAccessoryWidgets(new ArrayList()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); mockChatService.addResponse(expectedResponse); diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CardWithId.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CardWithId.java index 9d7553c44c7c..fa9569493621 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CardWithId.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CardWithId.java @@ -28,9 +28,17 @@ * [card](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards) * in a Google Chat message. * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the message can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. + * + * To learn how to create a message that contains cards, see [Send a + * message](https://developers.google.com/workspace/chat/create-messages). * * [Card builder](https://addons.gsuite.google.com/uikit/builder) * @@ -361,9 +369,17 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * [card](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards) * in a Google Chat message. * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the message can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. + * + * To learn how to create a message that contains cards, see [Send a + * message](https://developers.google.com/workspace/chat/create-messages). * * [Card builder](https://addons.gsuite.google.com/uikit/builder) * diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java index 586fcfc45236..0bb68e601132 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java @@ -61,7 +61,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ing.proto\032%google/chat/v1/space_read_sta" + "te.proto\032 google/chat/v1/space_setup.pro" + "to\032&google/chat/v1/thread_read_state.pro" - + "to\032\033google/protobuf/empty.proto2\352H\n\013Chat" + + "to\032\033google/protobuf/empty.proto2\250J\n\013Chat" + "Service\022\233\001\n\rCreateMessage\022$.google.chat." + "v1.CreateMessageRequest\032\027.google.chat.v1" + ".Message\"K\332A\031parent,message,message_id\202\323" @@ -245,8 +245,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "veSectionItemRequest\032\'.google.chat.v1.Mo" + "veSectionItemResponse\"K\332A\023name,target_se" + "ction\202\323\344\223\002/\"*/v1/{name=users/*/sections/" - + "*/items/*}:move:\001*\032\267\017\312A\023chat.googleapis." - + "com\322A\235\017https://www.googleapis.com/auth/c" + + "*/items/*}:move:\001*\032\365\020\312A\023chat.googleapis." + + "com\322A\333\020https://www.googleapis.com/auth/c" + "hat.admin.delete,https://www.googleapis." + "com/auth/chat.admin.memberships,https://" + "www.googleapis.com/auth/chat.admin.membe" @@ -254,52 +254,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "om/auth/chat.admin.spaces,https://www.go" + "ogleapis.com/auth/chat.admin.spaces.read" + "only,https://www.googleapis.com/auth/cha" - + "t.app.delete,https://www.googleapis.com/" - + "auth/chat.app.memberships,https://www.go" - + "ogleapis.com/auth/chat.app.memberships.r" - + "eadonly,https://www.googleapis.com/auth/" - + "chat.app.messages.readonly,https://www.g" - + "oogleapis.com/auth/chat.app.spaces,https" - + "://www.googleapis.com/auth/chat.app.spac" - + "es.create,https://www.googleapis.com/aut" - + "h/chat.app.spaces.readonly,https://www.g" - + "oogleapis.com/auth/chat.bot,https://www." - + "googleapis.com/auth/chat.customemojis,ht" - + "tps://www.googleapis.com/auth/chat.custo" - + "memojis.readonly,https://www.googleapis." - + "com/auth/chat.delete,https://www.googlea" - + "pis.com/auth/chat.import,https://www.goo" - + "gleapis.com/auth/chat.memberships,https:" - + "//www.googleapis.com/auth/chat.membershi" - + "ps.app,https://www.googleapis.com/auth/c" - + "hat.memberships.readonly,https://www.goo" - + "gleapis.com/auth/chat.messages,https://w" - + "ww.googleapis.com/auth/chat.messages.cre" - + "ate,https://www.googleapis.com/auth/chat" - + ".messages.reactions,https://www.googleap" - + "is.com/auth/chat.messages.reactions.crea" + + "t.app.all.memberships.readonly,https://w" + + "ww.googleapis.com/auth/chat.app.all.mess" + + "ages.readonly,https://www.googleapis.com" + + "/auth/chat.app.all.spaces.readonly,https" + + "://www.googleapis.com/auth/chat.app.dele" + "te,https://www.googleapis.com/auth/chat." - + "messages.reactions.readonly,https://www." - + "googleapis.com/auth/chat.messages.readon" - + "ly,https://www.googleapis.com/auth/chat." - + "spaces,https://www.googleapis.com/auth/c" - + "hat.spaces.create,https://www.googleapis" - + ".com/auth/chat.spaces.readonly,https://w" - + "ww.googleapis.com/auth/chat.users.availa" - + "bility,https://www.googleapis.com/auth/c" - + "hat.users.availability.readonly,https://" - + "www.googleapis.com/auth/chat.users.reads" - + "tate,https://www.googleapis.com/auth/cha" - + "t.users.readstate.readonly,https://www.g" - + "oogleapis.com/auth/chat.users.sections,h" - + "ttps://www.googleapis.com/auth/chat.user" - + "s.sections.readonly,https://www.googleap" - + "is.com/auth/chat.users.spacesettingsB\251\001\n" - + "\022com.google.chat.v1B\020ChatServiceProtoP\001Z" - + ",cloud.google.com/go/chat/apiv1/chatpb;c" - + "hatpb\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V" - + "1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google::Apps::" - + "Chat::V1b\006proto3" + + "app.memberships,https://www.googleapis.c" + + "om/auth/chat.app.memberships.readonly,ht" + + "tps://www.googleapis.com/auth/chat.app.m" + + "essages.readonly,https://www.googleapis." + + "com/auth/chat.app.spaces,https://www.goo" + + "gleapis.com/auth/chat.app.spaces.create," + + "https://www.googleapis.com/auth/chat.app" + + ".spaces.readonly,https://www.googleapis." + + "com/auth/chat.bot,https://www.googleapis" + + ".com/auth/chat.customemojis,https://www." + + "googleapis.com/auth/chat.customemojis.re" + + "adonly,https://www.googleapis.com/auth/c" + + "hat.delete,https://www.googleapis.com/au" + + "th/chat.import,https://www.googleapis.co" + + "m/auth/chat.memberships,https://www.goog" + + "leapis.com/auth/chat.memberships.app,htt" + + "ps://www.googleapis.com/auth/chat.member" + + "ships.readonly,https://www.googleapis.co" + + "m/auth/chat.messages,https://www.googlea" + + "pis.com/auth/chat.messages.create,https:" + + "//www.googleapis.com/auth/chat.messages." + + "reactions,https://www.googleapis.com/aut" + + "h/chat.messages.reactions.create,https:/" + + "/www.googleapis.com/auth/chat.messages.r" + + "eactions.readonly,https://www.googleapis" + + ".com/auth/chat.messages.readonly,https:/" + + "/www.googleapis.com/auth/chat.spaces,htt" + + "ps://www.googleapis.com/auth/chat.spaces" + + ".create,https://www.googleapis.com/auth/" + + "chat.spaces.readonly,https://www.googlea" + + "pis.com/auth/chat.users.availability,htt" + + "ps://www.googleapis.com/auth/chat.users." + + "availability.readonly,https://www.google" + + "apis.com/auth/chat.users.readstate,https" + + "://www.googleapis.com/auth/chat.users.re" + + "adstate.readonly,https://www.googleapis." + + "com/auth/chat.users.sections,https://www" + + ".googleapis.com/auth/chat.users.sections" + + ".readonly,https://www.googleapis.com/aut" + + "h/chat.users.spacesettingsB\251\001\n\022com.googl" + + "e.chat.v1B\020ChatServiceProtoP\001Z,cloud.goo" + + "gle.com/go/chat/apiv1/chatpb;chatpb\242\002\013DY" + + "NAPIProto\252\002\023Google.Apps.Chat.V1\312\002\023Google" + + "\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java index dcec5d02f0d1..517a7ae7992e 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java @@ -398,7 +398,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @return The threadKey. */ @java.lang.Override @@ -432,7 +432,7 @@ public java.lang.String getThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @return The bytes for threadKey. */ @java.lang.Override @@ -1543,7 +1543,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @return The threadKey. */ @java.lang.Deprecated @@ -1576,7 +1576,7 @@ public java.lang.String getThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @return The bytes for threadKey. */ @java.lang.Deprecated @@ -1609,7 +1609,7 @@ public com.google.protobuf.ByteString getThreadKeyBytes() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @param value The threadKey to set. * @return This builder for chaining. */ @@ -1641,7 +1641,7 @@ public Builder setThreadKey(java.lang.String value) { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1669,7 +1669,7 @@ public Builder clearThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @param value The bytes for threadKey to set. * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java index ac7a995833ad..5d7a3938a4cb 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java @@ -114,7 +114,7 @@ public interface CreateMessageRequestOrBuilder * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @return The threadKey. */ @java.lang.Deprecated @@ -137,7 +137,7 @@ public interface CreateMessageRequestOrBuilder * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=619 + * google/chat/v1/message.proto;l=633 * @return The bytes for threadKey. */ @java.lang.Deprecated diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMessageRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMessageRequest.java index 97f6243e9f79..b00ee8ef28b2 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMessageRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMessageRequest.java @@ -53,6 +53,7 @@ private GetMessageRequest(com.google.protobuf.GeneratedMessage.Builder builde private GetMessageRequest() { name_ = ""; + markupSyntax_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -141,6 +142,47 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int MARKUP_SYNTAX_FIELD_NUMBER = 3; + private int markupSyntax_ = 0; + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.chat.v1.MarkupSyntax getMarkupSyntax() { + com.google.chat.v1.MarkupSyntax result = + com.google.chat.v1.MarkupSyntax.forNumber(markupSyntax_); + return result == null ? com.google.chat.v1.MarkupSyntax.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -158,6 +200,9 @@ 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 (markupSyntax_ != com.google.chat.v1.MarkupSyntax.MARKUP_SYNTAX_UNSPECIFIED.getNumber()) { + output.writeEnum(3, markupSyntax_); + } getUnknownFields().writeTo(output); } @@ -170,6 +215,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } + if (markupSyntax_ != com.google.chat.v1.MarkupSyntax.MARKUP_SYNTAX_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, markupSyntax_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -186,6 +234,7 @@ public boolean equals(final java.lang.Object obj) { com.google.chat.v1.GetMessageRequest other = (com.google.chat.v1.GetMessageRequest) obj; if (!getName().equals(other.getName())) return false; + if (markupSyntax_ != other.markupSyntax_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,6 +248,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + MARKUP_SYNTAX_FIELD_NUMBER; + hash = (53 * hash) + markupSyntax_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -339,6 +390,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + markupSyntax_ = 0; return this; } @@ -377,6 +429,9 @@ private void buildPartial0(com.google.chat.v1.GetMessageRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.markupSyntax_ = markupSyntax_; + } } @java.lang.Override @@ -396,6 +451,9 @@ public Builder mergeFrom(com.google.chat.v1.GetMessageRequest other) { bitField0_ |= 0x00000001; onChanged(); } + if (other.markupSyntax_ != 0) { + setMarkupSyntaxValue(other.getMarkupSyntaxValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -428,6 +486,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 24: + { + markupSyntax_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -603,6 +667,116 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private int markupSyntax_ = 0; + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntaxValue(int value) { + markupSyntax_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.chat.v1.MarkupSyntax getMarkupSyntax() { + com.google.chat.v1.MarkupSyntax result = + com.google.chat.v1.MarkupSyntax.forNumber(markupSyntax_); + return result == null ? com.google.chat.v1.MarkupSyntax.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntax(com.google.chat.v1.MarkupSyntax value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + markupSyntax_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMarkupSyntax() { + bitField0_ = (bitField0_ & ~0x00000002); + markupSyntax_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.chat.v1.GetMessageRequest) } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMessageRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMessageRequestOrBuilder.java index cc3ce25f83a2..1f8863b10653 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMessageRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/GetMessageRequestOrBuilder.java @@ -69,4 +69,34 @@ public interface GetMessageRequestOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + int getMarkupSyntaxValue(); + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + com.google.chat.v1.MarkupSyntax getMarkupSyntax(); } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequest.java index 3c435771ac32..906f192e9e1a 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequest.java @@ -56,6 +56,7 @@ private ListMessagesRequest() { pageToken_ = ""; filter_ = ""; orderBy_ = ""; + markupSyntax_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -437,6 +438,47 @@ public boolean getShowDeleted() { return showDeleted_; } + public static final int MARKUP_SYNTAX_FIELD_NUMBER = 9; + private int markupSyntax_ = 0; + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.chat.v1.MarkupSyntax getMarkupSyntax() { + com.google.chat.v1.MarkupSyntax result = + com.google.chat.v1.MarkupSyntax.forNumber(markupSyntax_); + return result == null ? com.google.chat.v1.MarkupSyntax.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -469,6 +511,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (showDeleted_ != false) { output.writeBool(6, showDeleted_); } + if (markupSyntax_ != com.google.chat.v1.MarkupSyntax.MARKUP_SYNTAX_UNSPECIFIED.getNumber()) { + output.writeEnum(9, markupSyntax_); + } getUnknownFields().writeTo(output); } @@ -496,6 +541,9 @@ public int getSerializedSize() { if (showDeleted_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, showDeleted_); } + if (markupSyntax_ != com.google.chat.v1.MarkupSyntax.MARKUP_SYNTAX_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, markupSyntax_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -517,6 +565,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFilter().equals(other.getFilter())) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; if (getShowDeleted() != other.getShowDeleted()) return false; + if (markupSyntax_ != other.markupSyntax_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -540,6 +589,8 @@ public int hashCode() { hash = (53 * hash) + getOrderBy().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); + hash = (37 * hash) + MARKUP_SYNTAX_FIELD_NUMBER; + hash = (53 * hash) + markupSyntax_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -686,6 +737,7 @@ public Builder clear() { filter_ = ""; orderBy_ = ""; showDeleted_ = false; + markupSyntax_ = 0; return this; } @@ -740,6 +792,9 @@ private void buildPartial0(com.google.chat.v1.ListMessagesRequest result) { if (((from_bitField0_ & 0x00000020) != 0)) { result.showDeleted_ = showDeleted_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.markupSyntax_ = markupSyntax_; + } } @java.lang.Override @@ -780,6 +835,9 @@ public Builder mergeFrom(com.google.chat.v1.ListMessagesRequest other) { if (other.getShowDeleted() != false) { setShowDeleted(other.getShowDeleted()); } + if (other.markupSyntax_ != 0) { + setMarkupSyntaxValue(other.getMarkupSyntaxValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -842,6 +900,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 48 + case 72: + { + markupSyntax_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1707,6 +1771,116 @@ public Builder clearShowDeleted() { return this; } + private int markupSyntax_ = 0; + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntaxValue(int value) { + markupSyntax_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.chat.v1.MarkupSyntax getMarkupSyntax() { + com.google.chat.v1.MarkupSyntax result = + com.google.chat.v1.MarkupSyntax.forNumber(markupSyntax_); + return result == null ? com.google.chat.v1.MarkupSyntax.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntax(com.google.chat.v1.MarkupSyntax value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + markupSyntax_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMarkupSyntax() { + bitField0_ = (bitField0_ & ~0x00000040); + markupSyntax_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.chat.v1.ListMessagesRequest) } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequestOrBuilder.java index 6c87a913c19a..108b9e1d070a 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ListMessagesRequestOrBuilder.java @@ -269,4 +269,34 @@ public interface ListMessagesRequestOrBuilder * @return The showDeleted. */ boolean getShowDeleted(); + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + int getMarkupSyntaxValue(); + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + com.google.chat.v1.MarkupSyntax getMarkupSyntax(); } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkupSyntax.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkupSyntax.java new file mode 100644 index 000000000000..20542c0d9f60 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkupSyntax.java @@ -0,0 +1,208 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/chat/v1/markup_syntax.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +/** + * + * + *
+ * Specifies the markup syntax used to format the Chat message text.
+ * Applies to the `text` field of the `Message` resource.
+ * 
+ * + * Protobuf enum {@code google.chat.v1.MarkupSyntax} + */ +@com.google.protobuf.Generated +public enum MarkupSyntax implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Represents the unspecified value.
+   * 
+ * + * MARKUP_SYNTAX_UNSPECIFIED = 0; + */ + MARKUP_SYNTAX_UNSPECIFIED(0), + /** + * + * + *
+   * Uses Google Chat's markup syntax.
+   * See
+   * https://developers.google.com/workspace/chat/format-messages#format-texts
+   * for more information.
+   * 
+ * + * MARKUP_SYNTAX_CHAT = 1; + */ + MARKUP_SYNTAX_CHAT(1), + /** + * + * + *
+   * Uses Markdown syntax. This syntax is based on the
+   * [CommonMark](https://commonmark.org/help/) specification, with additional
+   * extensions.
+   * See
+   * https://developers.google.com/workspace/chat/format-messages#format-texts
+   * for more information.
+   * 
+ * + * MARKUP_SYNTAX_MARKDOWN = 2; + */ + MARKUP_SYNTAX_MARKDOWN(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "MarkupSyntax"); + } + + /** + * + * + *
+   * Represents the unspecified value.
+   * 
+ * + * MARKUP_SYNTAX_UNSPECIFIED = 0; + */ + public static final int MARKUP_SYNTAX_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Uses Google Chat's markup syntax.
+   * See
+   * https://developers.google.com/workspace/chat/format-messages#format-texts
+   * for more information.
+   * 
+ * + * MARKUP_SYNTAX_CHAT = 1; + */ + public static final int MARKUP_SYNTAX_CHAT_VALUE = 1; + + /** + * + * + *
+   * Uses Markdown syntax. This syntax is based on the
+   * [CommonMark](https://commonmark.org/help/) specification, with additional
+   * extensions.
+   * See
+   * https://developers.google.com/workspace/chat/format-messages#format-texts
+   * for more information.
+   * 
+ * + * MARKUP_SYNTAX_MARKDOWN = 2; + */ + public static final int MARKUP_SYNTAX_MARKDOWN_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 MarkupSyntax 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 MarkupSyntax forNumber(int value) { + switch (value) { + case 0: + return MARKUP_SYNTAX_UNSPECIFIED; + case 1: + return MARKUP_SYNTAX_CHAT; + case 2: + return MARKUP_SYNTAX_MARKDOWN; + 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 MarkupSyntax findValueByNumber(int number) { + return MarkupSyntax.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.chat.v1.MarkupSyntaxProto.getDescriptor().getEnumTypes().get(0); + } + + private static final MarkupSyntax[] VALUES = values(); + + public static MarkupSyntax 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 MarkupSyntax(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.chat.v1.MarkupSyntax) +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkupSyntaxProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkupSyntaxProto.java new file mode 100644 index 000000000000..6a5eec96ec48 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MarkupSyntaxProto.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/chat/v1/markup_syntax.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public final class MarkupSyntaxProto extends com.google.protobuf.GeneratedFile { + private MarkupSyntaxProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "MarkupSyntaxProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\"google/chat/v1/markup_syntax.proto\022\016go" + + "ogle.chat.v1*a\n\014MarkupSyntax\022\035\n\031MARKUP_S" + + "YNTAX_UNSPECIFIED\020\000\022\026\n\022MARKUP_SYNTAX_CHA" + + "T\020\001\022\032\n\026MARKUP_SYNTAX_MARKDOWN\020\002B\252\001\n\022com." + + "google.chat.v1B\021MarkupSyntaxProtoP\001Z,clo" + + "ud.google.com/go/chat/apiv1/chatpb;chatp" + + "b\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V1\312\002\023" + + "Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat" + + "::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java index c45f8ecd1cdd..fe22f7680d4b 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java @@ -65,6 +65,7 @@ private Message() { emojiReactionSummaries_ = java.util.Collections.emptyList(); attachedGifs_ = java.util.Collections.emptyList(); accessoryWidgets_ = java.util.Collections.emptyList(); + markupSyntax_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -703,9 +704,14 @@ public com.google.chat.v1.ContextualAddOnMarkup.CardOrBuilder getCardsOrBuilder( * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -729,9 +735,14 @@ public java.util.List getCardsV2List() { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -756,9 +767,14 @@ public java.util.List getCardsV2List() { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -782,9 +798,14 @@ public int getCardsV2Count() { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -808,9 +829,14 @@ public com.google.chat.v1.CardWithId getCardsV2(int index) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -2060,6 +2086,49 @@ public com.google.chat.v1.AccessoryWidgetOrBuilder getAccessoryWidgetsOrBuilder( return accessoryWidgets_.get(index); } + public static final int MARKUP_SYNTAX_FIELD_NUMBER = 47; + private int markupSyntax_ = 0; + + /** + * + * + *
+   * Optional. Specifies how the server interprets the message `text` field
+   * content.
+   * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+   * Optional. Specifies how the server interprets the message `text` field
+   * content.
+   * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.chat.v1.MarkupSyntax getMarkupSyntax() { + com.google.chat.v1.MarkupSyntax result = + com.google.chat.v1.MarkupSyntax.forNumber(markupSyntax_); + return result == null ? com.google.chat.v1.MarkupSyntax.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2155,6 +2224,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (silent_ != false) { output.writeBool(46, silent_); } + if (markupSyntax_ != com.google.chat.v1.MarkupSyntax.MARKUP_SYNTAX_UNSPECIFIED.getNumber()) { + output.writeEnum(47, markupSyntax_); + } getUnknownFields().writeTo(output); } @@ -2250,6 +2322,9 @@ public int getSerializedSize() { if (silent_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(46, silent_); } + if (markupSyntax_ != com.google.chat.v1.MarkupSyntax.MARKUP_SYNTAX_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(47, markupSyntax_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2329,6 +2404,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getAttachedGifsList().equals(other.getAttachedGifsList())) return false; if (!getAccessoryWidgetsList().equals(other.getAccessoryWidgetsList())) return false; + if (markupSyntax_ != other.markupSyntax_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2432,6 +2508,8 @@ public int hashCode() { hash = (37 * hash) + ACCESSORY_WIDGETS_FIELD_NUMBER; hash = (53 * hash) + getAccessoryWidgetsList().hashCode(); } + hash = (37 * hash) + MARKUP_SYNTAX_FIELD_NUMBER; + hash = (53 * hash) + markupSyntax_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2713,6 +2791,7 @@ public Builder clear() { accessoryWidgetsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x04000000); + markupSyntax_ = 0; return this; } @@ -2897,6 +2976,9 @@ private void buildPartial0(com.google.chat.v1.Message result) { : quotedMessageMetadataBuilder_.build(); to_bitField0_ |= 0x00000800; } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.markupSyntax_ = markupSyntax_; + } result.bitField0_ |= to_bitField0_; } @@ -3173,6 +3255,9 @@ public Builder mergeFrom(com.google.chat.v1.Message other) { } } } + if (other.markupSyntax_ != 0) { + setMarkupSyntaxValue(other.getMarkupSyntaxValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3415,6 +3500,12 @@ public Builder mergeFrom( bitField0_ |= 0x00080000; break; } // case 368 + case 376: + { + markupSyntax_ = input.readEnum(); + bitField0_ |= 0x08000000; + break; + } // case 376 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5454,9 +5545,14 @@ private void ensureCardsV2IsMutable() { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5483,9 +5579,14 @@ public java.util.List getCardsV2List() { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5512,9 +5613,14 @@ public int getCardsV2Count() { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5541,9 +5647,14 @@ public com.google.chat.v1.CardWithId getCardsV2(int index) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5576,9 +5687,14 @@ public Builder setCardsV2(int index, com.google.chat.v1.CardWithId value) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5608,9 +5724,14 @@ public Builder setCardsV2(int index, com.google.chat.v1.CardWithId.Builder build * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5643,9 +5764,14 @@ public Builder addCardsV2(com.google.chat.v1.CardWithId value) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5678,9 +5804,14 @@ public Builder addCardsV2(int index, com.google.chat.v1.CardWithId value) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5710,9 +5841,14 @@ public Builder addCardsV2(com.google.chat.v1.CardWithId.Builder builderForValue) * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5742,9 +5878,14 @@ public Builder addCardsV2(int index, com.google.chat.v1.CardWithId.Builder build * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5775,9 +5916,14 @@ public Builder addAllCardsV2( * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5807,9 +5953,14 @@ public Builder clearCardsV2() { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5839,9 +5990,14 @@ public Builder removeCardsV2(int index) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5864,9 +6020,14 @@ public com.google.chat.v1.CardWithId.Builder getCardsV2Builder(int index) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5893,9 +6054,14 @@ public com.google.chat.v1.CardWithIdOrBuilder getCardsV2OrBuilder(int index) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5923,9 +6089,14 @@ public com.google.chat.v1.CardWithIdOrBuilder getCardsV2OrBuilder(int index) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5949,9 +6120,14 @@ public com.google.chat.v1.CardWithId.Builder addCardsV2Builder() { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -5975,9 +6151,14 @@ public com.google.chat.v1.CardWithId.Builder addCardsV2Builder(int index) { * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -10636,6 +10817,116 @@ public com.google.chat.v1.AccessoryWidget.Builder addAccessoryWidgetsBuilder(int return accessoryWidgetsBuilder_; } + private int markupSyntax_ = 0; + + /** + * + * + *
+     * Optional. Specifies how the server interprets the message `text` field
+     * content.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+     * Optional. Specifies how the server interprets the message `text` field
+     * content.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntaxValue(int value) { + markupSyntax_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies how the server interprets the message `text` field
+     * content.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.chat.v1.MarkupSyntax getMarkupSyntax() { + com.google.chat.v1.MarkupSyntax result = + com.google.chat.v1.MarkupSyntax.forNumber(markupSyntax_); + return result == null ? com.google.chat.v1.MarkupSyntax.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. Specifies how the server interprets the message `text` field
+     * content.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntax(com.google.chat.v1.MarkupSyntax value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x08000000; + markupSyntax_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies how the server interprets the message `text` field
+     * content.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMarkupSyntax() { + bitField0_ = (bitField0_ & ~0x08000000); + markupSyntax_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.chat.v1.Message) } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java index 32b87c9a6932..317a98f74808 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java @@ -491,9 +491,14 @@ public interface MessageOrBuilder * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -514,9 +519,14 @@ public interface MessageOrBuilder * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -537,9 +547,14 @@ public interface MessageOrBuilder * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -560,9 +575,14 @@ public interface MessageOrBuilder * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -583,9 +603,14 @@ public interface MessageOrBuilder * Optional. An array of * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). * - * Only Chat apps can create cards. If your Chat app [authenticates as a + * Chat apps can create cards with [app + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + * As part of the [Developer Preview + * Program](https://developers.google.com/workspace/preview), if your Chat app + * [authenticates as a * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - * the messages can't contain cards. + * it can create card messages. If your Chat app is not part of Developer + * Preview Program, it can't create cards with user authentication. * * To learn how to create a message that contains cards, see [Send a * message](https://developers.google.com/workspace/chat/create-messages). @@ -1518,4 +1543,36 @@ public interface MessageOrBuilder * */ com.google.chat.v1.AccessoryWidgetOrBuilder getAccessoryWidgetsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Specifies how the server interprets the message `text` field
+   * content.
+   * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + int getMarkupSyntaxValue(); + + /** + * + * + *
+   * Optional. Specifies how the server interprets the message `text` field
+   * content.
+   * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 47 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + com.google.chat.v1.MarkupSyntax getMarkupSyntax(); } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java index 46c021ffb966..7a555b118e82 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java @@ -149,18 +149,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "n_status.proto\032\037google/chat/v1/annotatio" + "n.proto\032\037google/chat/v1/attachment.proto" + "\032%google/chat/v1/contextual_addon.proto\032" - + "&google/chat/v1/deletion_metadata.proto\032" - + " google/chat/v1/matched_url.proto\032\035googl" - + "e/chat/v1/reaction.proto\032\"google/chat/v1" - + "/slash_command.proto\032\032google/chat/v1/spa" - + "ce.proto\032/google/chat/v1/space_notificat" - + "ion_setting.proto\032\031google/chat/v1/user.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\351\n\n" + + "&google/chat/v1/deletion_metadata.proto\032\"google/chat/v1/markup_syntax.proto\032" + + " google/chat/v1/matched_url.proto\032\035google/ch" + + "at/v1/reaction.proto\032\"google/chat/v1/sla" + + "sh_command.proto\032\032google/chat/v1/space.p" + + "roto\032/google/chat/v1/space_notification_" + + "setting.proto\032\031google/chat/v1/user.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\243\013\n" + "\007Message\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022)\n" + "\006sender\030\002 \001(\0132\024.google.chat.v1.UserB\003\340A\003\0227\n" - + "\013create_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\006\340A\005\340A\001\0229\n" + + "\013create_time\030\003 \001" + + "(\0132\032.google.protobuf.TimestampB\006\340A\005\340A\001\0229\n" + "\020last_update_time\030\027" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013delete_time\030\032" @@ -197,7 +197,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132%.google.chat.v1.QuotedMessageMetadataB\003\340A\001\0227\n\r" + "attached_gifs\030* \003(\0132\033.google.chat.v1.AttachedGifB\003\340A\003\022?\n" + "\021accessory_widgets\030," - + " \003(\0132\037.google.chat.v1.AccessoryWidgetB\003\340A\001:C\352A@\n" + + " \003(\0132\037.google.chat.v1.AccessoryWidgetB\003\340A\001\0228\n\r" + + "markup_syntax\030/ \001(\0162\034.google.chat.v1.MarkupSyntaxB\003\340A\001:C\352A@\n" + "\033chat.googleapis.com/Message\022!spaces/{space}/messages/{message}\"\037\n" + "\013AttachedGif\022\020\n" + "\003uri\030\001 \001(\tB\003\340A\003\"\245\004\n" @@ -216,8 +217,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026QUOTE_TYPE_UNSPECIFIED\020\000\022\t\n" + "\005REPLY\020\001\022\013\n" + "\007FORWARD\020\002:\201\001\352A~\n" - + ")chat.googleapis.com/QuotedMessageMetadata\022Qspaces/{space}/messages/{message}/quo" - + "tedMessageMetadata/{quoted_message_metadata}\"\310\001\n" + + ")chat.googleapis.com/QuotedMessageMetadata\022Qspaces/{space}/messages" + + "/{message}/quotedMessageMetadata/{quoted_message_metadata}\"\310\001\n" + "\025QuotedMessageSnapshot\022\023\n" + "\006sender\030\001 \001(\tB\003\340A\003\022\021\n" + "\004text\030\002 \001(\tB\003\340A\003\022\033\n" @@ -233,18 +234,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "thread_key\030\003 \001(\tB\003\340A\001:@\352A=\n" + "\032chat.googleapis.com/Thread\022\037spaces/{space}/threads/{thread}\"\322\004\n" + "\016ActionResponse\022>\n" - + "\004type\030\001" - + " \001(\0162+.google.chat.v1.ActionResponse.ResponseTypeB\003\340A\004\022\020\n" + + "\004type\030\001 \001(\0162+" + + ".google.chat.v1.ActionResponse.ResponseTypeB\003\340A\004\022\020\n" + "\003url\030\002 \001(\tB\003\340A\004\0228\n\r" + "dialog_action\030\003 \001(\0132\034.google.chat.v1.DialogActionB\003\340A\004\022I\n" - + "\016updated_widget\030\004" - + " \001(\0132,.google.chat.v1.ActionResponse.UpdatedWidgetB\003\340A\004\032R\n" + + "\016updated_widget\030\004 \001(\0132,.google.ch" + + "at.v1.ActionResponse.UpdatedWidgetB\003\340A\004\032R\n" + "\016SelectionItems\022@\n" - + "\005items\030\001" - + " \003(\01321.google.apps.card.v1.SelectionInput.SelectionItem\032w\n\r" + + "\005items\030\001 \003(\01321.googl" + + "e.apps.card.v1.SelectionInput.SelectionItem\032w\n\r" + "UpdatedWidget\022D\n" - + "\013suggestions\030\001" - + " \001(\0132-.google.chat.v1.ActionResponse.SelectionItemsH\000\022\016\n" + + "\013suggestions\030\001 \001(" + + "\0132-.google.chat.v1.ActionResponse.SelectionItemsH\000\022\016\n" + "\006widget\030\002 \001(\tB\020\n" + "\016updated_widget\"\233\001\n" + "\014ResponseType\022\024\n" @@ -257,10 +258,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "UPDATE_WIDGET\020\007\"S\n" + "\017AccessoryWidget\0226\n" + "\013button_list\030\001 \001(\0132\037.google.apps.card.v1.ButtonListH\000B\010\n" - + "\006action\"F\n" + + "\006action\"\200\001\n" + "\021GetMessageRequest\0221\n" + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" - + "\033chat.googleapis.com/Message\"]\n" + + "\033chat.googleapis.com/Message\0228\n\r" + + "markup_syntax\030\003 \001(\0162\034.google.chat.v1.MarkupSyntaxB\003\340A\001\"]\n" + "\024DeleteMessageRequest\0221\n" + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" + "\033chat.googleapis.com/Message\022\022\n" @@ -276,8 +278,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007message\030\004 \001(\0132\027.google.chat.v1.MessageB\003\340A\002\022\031\n\n" + "thread_key\030\006 \001(\tB\005\030\001\340A\001\022\027\n\n" + "request_id\030\007 \001(\tB\003\340A\001\022Z\n" - + "\024message_reply_option\030\010 \001(" - + "\01627.google.chat.v1.CreateMessageRequest.MessageReplyOptionB\003\340A\001\022\027\n\n" + + "\024message_reply_option\030\010 \001(\01627.goo" + + "gle.chat.v1.CreateMessageRequest.MessageReplyOptionB\003\340A\001\022\027\n\n" + "message_id\030\t \001(\tB\003\340A\001\022b\n" + "#create_message_notification_options\030\n" + " \001(\01320.google.chat.v1.CreateMessageNotificationOptionsB\003\340A\001\"\177\n" @@ -286,12 +288,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD\020\001\022\031\n" + "\025REPLY_MESSAGE_OR_FAIL\020\002\"\362\001\n" + " CreateMessageNotificationOptions\022\\\n" - + "\021notification_type\030\001 \001(\0162A.google.chat.v1.C" - + "reateMessageNotificationOptions.NotificationType\"p\n" + + "\021notification_type\030\001 \001(\0162A.google.chat.v1.CreateMe" + + "ssageNotificationOptions.NotificationType\"p\n" + "\020NotificationType\022\032\n" + "\026NOTIFICATION_TYPE_NONE\020\000\022\"\n" + "\036NOTIFICATION_TYPE_FORCE_NOTIFY\020\002\022\034\n" - + "\030NOTIFICATION_TYPE_SILENT\020\003\"\302\001\n" + + "\030NOTIFICATION_TYPE_SILENT\020\003\"\374\001\n" + "\023ListMessagesRequest\0223\n" + "\006parent\030\001 \001(" + "\tB#\340A\002\372A\035\022\033chat.googleapis.com/Message\022\026\n" @@ -299,7 +301,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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\022\031\n" - + "\014show_deleted\030\006 \001(\010B\003\340A\001\"Z\n" + + "\014show_deleted\030\006 \001(\010B\003\340A\001\0228\n\r" + + "markup_syntax\030\t \001(\0162\034.google.chat.v1.MarkupSyntaxB\003\340A\001\"Z\n" + "\024ListMessagesResponse\022)\n" + "\010messages\030\001 \003(\0132\027.google.chat.v1.Message\022\027\n" + "\017next_page_token\030\002 \001(\t\"\201\001\n" @@ -311,16 +314,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004body\030\001 \001(\0132\031.google.apps.card.v1.CardB\003\340A\004\"F\n\n" + "CardWithId\022\017\n" + "\007card_id\030\001 \001(\t\022\'\n" - + "\004card\030\002 \001(\0132\031.google.apps.card.v1.Card\"\357\002\n" + + "\004card\030\002 \001(\0132\031.google.apps.card.v1.Card\"\251\003\n" + "\025SearchMessagesRequest\0221\n" + "\006parent\030\001 \001(\tB!\340A\002\372A\033\n" + "\031chat.googleapis.com/Space\022\023\n" + "\006filter\030\002 \001(\tB\003\340A\002\022\026\n" + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\004 \001(\tB\003\340A\001\022\025\n" - + "\010order_by\030\005 \001(\tB\003\340A\001\022K\n" - + "\004view\030\007 \001(\01628.google.chat.v1.SearchM" - + "essagesRequest.SearchMessagesViewB\003\340A\001\"y\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\0228\n\r" + + "markup_syntax\030\006 \001(\0162\034.google.chat.v1.MarkupSyntaxB\003\340A\001\022K\n" + + "\004view\030\007" + + " \001(\01628.google.chat.v1.SearchMessagesRequest.SearchMessagesViewB\003\340A\001\"y\n" + "\022SearchMessagesView\022$\n" + " SEARCH_MESSAGES_VIEW_UNSPECIFIED\020\000\022\036\n" + "\032SEARCH_MESSAGES_VIEW_BASIC\020\001\022\035\n" @@ -334,9 +338,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022space_mute_setting\030\004" + " \001(\01624.google.chat.v1.SpaceNotificationSetting.MuteSettingB\007\n" + "\005_readB\245\001\n" - + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.com/go/chat/apiv1/chatpb" - + ";chatpb\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat" - + ".V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" + + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.go" + + "ogle.com/go/chat/apiv1/chatpb;chatpb\242\002\013D" + + "YNAPIProto\252\002\023Google.Apps.Chat.V1\312\002\023Googl" + + "e\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -350,6 +355,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.chat.v1.AttachmentProto.getDescriptor(), com.google.chat.v1.ContextualAddOnProto.getDescriptor(), com.google.chat.v1.DeletionMetadataProto.getDescriptor(), + com.google.chat.v1.MarkupSyntaxProto.getDescriptor(), com.google.chat.v1.MatchedUrlProto.getDescriptor(), com.google.chat.v1.ReactionProto.getDescriptor(), com.google.chat.v1.SlashCommandProto.getDescriptor(), @@ -391,6 +397,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QuotedMessageMetadata", "AttachedGifs", "AccessoryWidgets", + "MarkupSyntax", }); internal_static_google_chat_v1_AttachedGif_descriptor = getDescriptor().getMessageType(1); internal_static_google_chat_v1_AttachedGif_fieldAccessorTable = @@ -464,7 +471,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_GetMessageRequest_descriptor, new java.lang.String[] { - "Name", + "Name", "MarkupSyntax", }); internal_static_google_chat_v1_DeleteMessageRequest_descriptor = getDescriptor().getMessageType(9); @@ -510,7 +517,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_ListMessagesRequest_descriptor, new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "ShowDeleted", + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "ShowDeleted", "MarkupSyntax", }); internal_static_google_chat_v1_ListMessagesResponse_descriptor = getDescriptor().getMessageType(14); @@ -547,7 +554,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_SearchMessagesRequest_descriptor, new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", "OrderBy", "View", + "Parent", "Filter", "PageSize", "PageToken", "OrderBy", "MarkupSyntax", "View", }); internal_static_google_chat_v1_SearchMessagesResponse_descriptor = getDescriptor().getMessageType(19); @@ -574,6 +581,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.chat.v1.AttachmentProto.getDescriptor(); com.google.chat.v1.ContextualAddOnProto.getDescriptor(); com.google.chat.v1.DeletionMetadataProto.getDescriptor(); + com.google.chat.v1.MarkupSyntaxProto.getDescriptor(); com.google.chat.v1.MatchedUrlProto.getDescriptor(); com.google.chat.v1.ReactionProto.getDescriptor(); com.google.chat.v1.SlashCommandProto.getDescriptor(); diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequest.java index 0a46e12262a8..c4e6c38f393b 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequest.java @@ -56,6 +56,7 @@ private SearchMessagesRequest() { filter_ = ""; pageToken_ = ""; orderBy_ = ""; + markupSyntax_ = 0; view_ = 0; } @@ -785,6 +786,47 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } + public static final int MARKUP_SYNTAX_FIELD_NUMBER = 6; + private int markupSyntax_ = 0; + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.chat.v1.MarkupSyntax getMarkupSyntax() { + com.google.chat.v1.MarkupSyntax result = + com.google.chat.v1.MarkupSyntax.forNumber(markupSyntax_); + return result == null ? com.google.chat.v1.MarkupSyntax.UNRECOGNIZED : result; + } + public static final int VIEW_FIELD_NUMBER = 7; private int view_ = 0; @@ -859,6 +901,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); } + if (markupSyntax_ != com.google.chat.v1.MarkupSyntax.MARKUP_SYNTAX_UNSPECIFIED.getNumber()) { + output.writeEnum(6, markupSyntax_); + } if (view_ != com.google.chat.v1.SearchMessagesRequest.SearchMessagesView .SEARCH_MESSAGES_VIEW_UNSPECIFIED @@ -889,6 +934,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); } + if (markupSyntax_ != com.google.chat.v1.MarkupSyntax.MARKUP_SYNTAX_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, markupSyntax_); + } if (view_ != com.google.chat.v1.SearchMessagesRequest.SearchMessagesView .SEARCH_MESSAGES_VIEW_UNSPECIFIED @@ -915,6 +963,7 @@ public boolean equals(final java.lang.Object obj) { if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; + if (markupSyntax_ != other.markupSyntax_) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -937,6 +986,8 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + MARKUP_SYNTAX_FIELD_NUMBER; + hash = (53 * hash) + markupSyntax_; hash = (37 * hash) + VIEW_FIELD_NUMBER; hash = (53 * hash) + view_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -1084,6 +1135,7 @@ public Builder clear() { pageSize_ = 0; pageToken_ = ""; orderBy_ = ""; + markupSyntax_ = 0; view_ = 0; return this; } @@ -1137,6 +1189,9 @@ private void buildPartial0(com.google.chat.v1.SearchMessagesRequest result) { result.orderBy_ = orderBy_; } if (((from_bitField0_ & 0x00000020) != 0)) { + result.markupSyntax_ = markupSyntax_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { result.view_ = view_; } } @@ -1176,6 +1231,9 @@ public Builder mergeFrom(com.google.chat.v1.SearchMessagesRequest other) { bitField0_ |= 0x00000010; onChanged(); } + if (other.markupSyntax_ != 0) { + setMarkupSyntaxValue(other.getMarkupSyntaxValue()); + } if (other.view_ != 0) { setViewValue(other.getViewValue()); } @@ -1235,10 +1293,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 48: + { + markupSyntax_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 case 56: { view_ = input.readEnum(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 56 default: @@ -2518,6 +2582,116 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { return this; } + private int markupSyntax_ = 0; + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + @java.lang.Override + public int getMarkupSyntaxValue() { + return markupSyntax_; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntaxValue(int value) { + markupSyntax_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + @java.lang.Override + public com.google.chat.v1.MarkupSyntax getMarkupSyntax() { + com.google.chat.v1.MarkupSyntax result = + com.google.chat.v1.MarkupSyntax.forNumber(markupSyntax_); + return result == null ? com.google.chat.v1.MarkupSyntax.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The markupSyntax to set. + * @return This builder for chaining. + */ + public Builder setMarkupSyntax(com.google.chat.v1.MarkupSyntax value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + markupSyntax_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies the desired output syntax for the Chat message
+     * `formatted_text` field.
+     * 
+ * + * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMarkupSyntax() { + bitField0_ = (bitField0_ & ~0x00000020); + markupSyntax_ = 0; + onChanged(); + return this; + } + private int view_ = 0; /** @@ -2556,7 +2730,7 @@ public int getViewValue() { */ public Builder setViewValue(int value) { view_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2603,7 +2777,7 @@ public Builder setView(com.google.chat.v1.SearchMessagesRequest.SearchMessagesVi if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; view_ = value.getNumber(); onChanged(); return this; @@ -2624,7 +2798,7 @@ public Builder setView(com.google.chat.v1.SearchMessagesRequest.SearchMessagesVi * @return This builder for chaining. */ public Builder clearView() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); view_ = 0; onChanged(); return this; diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequestOrBuilder.java index 6ccfab3902f0..99dd999b5a46 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequestOrBuilder.java @@ -445,6 +445,36 @@ public interface SearchMessagesRequestOrBuilder */ com.google.protobuf.ByteString getOrderByBytes(); + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for markupSyntax. + */ + int getMarkupSyntaxValue(); + + /** + * + * + *
+   * Optional. Specifies the desired output syntax for the Chat message
+   * `formatted_text` field.
+   * 
+ * + * .google.chat.v1.MarkupSyntax markup_syntax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The markupSyntax. + */ + com.google.chat.v1.MarkupSyntax getMarkupSyntax(); + /** * * diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchSpacesRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchSpacesRequest.java index f54934d5760d..61d7b5002f13 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchSpacesRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchSpacesRequest.java @@ -469,6 +469,7 @@ public com.google.protobuf.ByteString getQueryBytes() { * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -525,6 +526,7 @@ public java.lang.String getOrderBy() { * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1852,6 +1854,7 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1907,6 +1910,7 @@ public java.lang.String getOrderBy() { * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1962,6 +1966,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2016,6 +2021,7 @@ public Builder setOrderBy(java.lang.String value) { * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2066,6 +2072,7 @@ public Builder clearOrderBy() { * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchSpacesRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchSpacesRequestOrBuilder.java index 047701828a8f..ecbf9d79a93a 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchSpacesRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchSpacesRequestOrBuilder.java @@ -352,6 +352,7 @@ public interface SearchSpacesRequestOrBuilder * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -397,6 +398,7 @@ public interface SearchSpacesRequestOrBuilder * * - `create_time DESC` * - `relevance DESC` + * [Developer Preview](https://developers.google.com/workspace/preview). * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto index a2fd4a9526e0..455ba073ced7 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto @@ -51,6 +51,9 @@ service ChatService { "https://www.googleapis.com/auth/chat.admin.memberships.readonly," "https://www.googleapis.com/auth/chat.admin.spaces," "https://www.googleapis.com/auth/chat.admin.spaces.readonly," + "https://www.googleapis.com/auth/chat.app.all.memberships.readonly," + "https://www.googleapis.com/auth/chat.app.all.messages.readonly," + "https://www.googleapis.com/auth/chat.app.all.spaces.readonly," "https://www.googleapis.com/auth/chat.app.delete," "https://www.googleapis.com/auth/chat.app.memberships," "https://www.googleapis.com/auth/chat.app.memberships.readonly," diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/markup_syntax.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/markup_syntax.proto new file mode 100644 index 000000000000..d3ef44ceb6ff --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/markup_syntax.proto @@ -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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.chat.v1; + +option csharp_namespace = "Google.Apps.Chat.V1"; +option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb"; +option java_multiple_files = true; +option java_outer_classname = "MarkupSyntaxProto"; +option java_package = "com.google.chat.v1"; +option objc_class_prefix = "DYNAPIProto"; +option php_namespace = "Google\\Apps\\Chat\\V1"; +option ruby_package = "Google::Apps::Chat::V1"; + +// Specifies the markup syntax used to format the Chat message text. +// Applies to the `text` field of the `Message` resource. +enum MarkupSyntax { + // Represents the unspecified value. + MARKUP_SYNTAX_UNSPECIFIED = 0; + + // Uses Google Chat's markup syntax. + // See + // https://developers.google.com/workspace/chat/format-messages#format-texts + // for more information. + MARKUP_SYNTAX_CHAT = 1; + + // Uses Markdown syntax. This syntax is based on the + // [CommonMark](https://commonmark.org/help/) specification, with additional + // extensions. + // See + // https://developers.google.com/workspace/chat/format-messages#format-texts + // for more information. + MARKUP_SYNTAX_MARKDOWN = 2; +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto index 22d53f09d3d6..37a07c0b9f41 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto @@ -24,6 +24,7 @@ import "google/chat/v1/annotation.proto"; import "google/chat/v1/attachment.proto"; import "google/chat/v1/contextual_addon.proto"; import "google/chat/v1/deletion_metadata.proto"; +import "google/chat/v1/markup_syntax.proto"; import "google/chat/v1/matched_url.proto"; import "google/chat/v1/reaction.proto"; import "google/chat/v1/slash_command.proto"; @@ -145,9 +146,14 @@ message Message { // Optional. An array of // [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). // - // Only Chat apps can create cards. If your Chat app [authenticates as a + // Chat apps can create cards with [app + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). + // As part of the [Developer Preview + // Program](https://developers.google.com/workspace/preview), if your Chat app + // [authenticates as a // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), - // the messages can't contain cards. + // it can create card messages. If your Chat app is not part of Developer + // Preview Program, it can't create cards with user authentication. // // To learn how to create a message that contains cards, see [Send a // message](https://developers.google.com/workspace/chat/create-messages). @@ -272,6 +278,10 @@ message Message { // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). repeated AccessoryWidget accessory_widgets = 44 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies how the server interprets the message `text` field + // content. + MarkupSyntax markup_syntax = 47 [(google.api.field_behavior) = OPTIONAL]; } // A GIF image that's specified by a URL. @@ -512,6 +522,10 @@ message GetMessageRequest { (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "chat.googleapis.com/Message" } ]; + + // Optional. Specifies the desired output syntax for the Chat message + // `formatted_text` field. + MarkupSyntax markup_syntax = 3 [(google.api.field_behavior) = OPTIONAL]; } // Request to delete a message. @@ -775,6 +789,10 @@ message ListMessagesRequest { // deleted time and metadata about their deletion, but message content is // unavailable. bool show_deleted = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the desired output syntax for the Chat message + // `formatted_text` field. + MarkupSyntax markup_syntax = 9 [(google.api.field_behavior) = OPTIONAL]; } // Response message for listing messages. @@ -818,9 +836,17 @@ message Dialog { // [card](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards) // in a Google Chat message. // -// Only Chat apps can create cards. If your Chat app [authenticates as a +// Chat apps can create cards with [app +// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). +// As part of the [Developer Preview +// Program](https://developers.google.com/workspace/preview), if your Chat app +// [authenticates as a // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), -// the message can't contain cards. +// it can create card messages. If your Chat app is not part of Developer +// Preview Program, it can't create cards with user authentication. +// +// To learn how to create a message that contains cards, see [Send a +// message](https://developers.google.com/workspace/chat/create-messages). // // [Card builder](https://addons.gsuite.google.com/uikit/builder) message CardWithId { @@ -1019,6 +1045,10 @@ message SearchMessagesRequest { // is supported, and it must be specified after the order attribute. string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Specifies the desired output syntax for the Chat message + // `formatted_text` field. + MarkupSyntax markup_syntax = 6 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Specifies what kind of search results view to return. The default // is `SEARCH_MESSAGES_VIEW_BASIC`. SearchMessagesView view = 7 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto index b2750239eaa1..8c3cf641fd8e 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto @@ -916,6 +916,7 @@ message SearchSpacesRequest { // // - `create_time DESC` // - `relevance DESC` + // [Developer Preview](https://developers.google.com/workspace/preview). string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getmessage/AsyncGetMessage.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getmessage/AsyncGetMessage.java index 1e3ffd1053b4..622e1d3669cb 100644 --- a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getmessage/AsyncGetMessage.java +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getmessage/AsyncGetMessage.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFuture; import com.google.chat.v1.ChatServiceClient; import com.google.chat.v1.GetMessageRequest; +import com.google.chat.v1.MarkupSyntax; import com.google.chat.v1.Message; import com.google.chat.v1.MessageName; @@ -39,6 +40,7 @@ public static void asyncGetMessage() throws Exception { GetMessageRequest request = GetMessageRequest.newBuilder() .setName(MessageName.of("[SPACE]", "[MESSAGE]").toString()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); ApiFuture future = chatServiceClient.getMessageCallable().futureCall(request); // Do something. diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getmessage/SyncGetMessage.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getmessage/SyncGetMessage.java index 06eed56f843e..33cc5556ae82 100644 --- a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getmessage/SyncGetMessage.java +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/getmessage/SyncGetMessage.java @@ -19,6 +19,7 @@ // [START chat_v1_generated_ChatService_GetMessage_sync] import com.google.chat.v1.ChatServiceClient; import com.google.chat.v1.GetMessageRequest; +import com.google.chat.v1.MarkupSyntax; import com.google.chat.v1.Message; import com.google.chat.v1.MessageName; @@ -38,6 +39,7 @@ public static void syncGetMessage() throws Exception { GetMessageRequest request = GetMessageRequest.newBuilder() .setName(MessageName.of("[SPACE]", "[MESSAGE]").toString()) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); Message response = chatServiceClient.getMessage(request); } diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/AsyncListMessages.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/AsyncListMessages.java index f797b23cf126..11cd206c1d6f 100644 --- a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/AsyncListMessages.java +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/AsyncListMessages.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFuture; import com.google.chat.v1.ChatServiceClient; import com.google.chat.v1.ListMessagesRequest; +import com.google.chat.v1.MarkupSyntax; import com.google.chat.v1.Message; import com.google.chat.v1.SpaceName; @@ -44,6 +45,7 @@ public static void asyncListMessages() throws Exception { .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .setShowDeleted(true) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); ApiFuture future = chatServiceClient.listMessagesPagedCallable().futureCall(request); // Do something. diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/AsyncListMessagesPaged.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/AsyncListMessagesPaged.java index 6cd8d46c69be..adf719fe5616 100644 --- a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/AsyncListMessagesPaged.java +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/AsyncListMessagesPaged.java @@ -20,6 +20,7 @@ import com.google.chat.v1.ChatServiceClient; import com.google.chat.v1.ListMessagesRequest; import com.google.chat.v1.ListMessagesResponse; +import com.google.chat.v1.MarkupSyntax; import com.google.chat.v1.Message; import com.google.chat.v1.SpaceName; import com.google.common.base.Strings; @@ -45,6 +46,7 @@ public static void asyncListMessagesPaged() throws Exception { .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .setShowDeleted(true) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); while (true) { ListMessagesResponse response = chatServiceClient.listMessagesCallable().call(request); diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/SyncListMessages.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/SyncListMessages.java index 91d39fabd629..2251889a301b 100644 --- a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/SyncListMessages.java +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/listmessages/SyncListMessages.java @@ -19,6 +19,7 @@ // [START chat_v1_generated_ChatService_ListMessages_sync] import com.google.chat.v1.ChatServiceClient; import com.google.chat.v1.ListMessagesRequest; +import com.google.chat.v1.MarkupSyntax; import com.google.chat.v1.Message; import com.google.chat.v1.SpaceName; @@ -43,6 +44,7 @@ public static void syncListMessages() throws Exception { .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .setShowDeleted(true) + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); for (Message element : chatServiceClient.listMessages(request).iterateAll()) { // doThingsWith(element); diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessages.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessages.java index 2f107a6d6f6d..d78aa5080b3e 100644 --- a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessages.java +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessages.java @@ -19,6 +19,7 @@ // [START chat_v1_generated_ChatService_SearchMessages_async] import com.google.api.core.ApiFuture; import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.MarkupSyntax; import com.google.chat.v1.SearchMessageResult; import com.google.chat.v1.SearchMessagesRequest; import com.google.chat.v1.SpaceName; @@ -43,6 +44,7 @@ public static void asyncSearchMessages() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOrderBy("orderBy-1207110587") + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); ApiFuture future = chatServiceClient.searchMessagesPagedCallable().futureCall(request); diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessagesPaged.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessagesPaged.java index ebc8f22f57d1..a06d965d8088 100644 --- a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessagesPaged.java +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessagesPaged.java @@ -18,6 +18,7 @@ // [START chat_v1_generated_ChatService_SearchMessages_Paged_async] import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.MarkupSyntax; import com.google.chat.v1.SearchMessageResult; import com.google.chat.v1.SearchMessagesRequest; import com.google.chat.v1.SearchMessagesResponse; @@ -44,6 +45,7 @@ public static void asyncSearchMessagesPaged() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOrderBy("orderBy-1207110587") + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); while (true) { SearchMessagesResponse response = chatServiceClient.searchMessagesCallable().call(request); diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessages.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessages.java index 18276a2f9be3..4654791d770a 100644 --- a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessages.java +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessages.java @@ -18,6 +18,7 @@ // [START chat_v1_generated_ChatService_SearchMessages_sync] import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.MarkupSyntax; import com.google.chat.v1.SearchMessageResult; import com.google.chat.v1.SearchMessagesRequest; import com.google.chat.v1.SpaceName; @@ -42,6 +43,7 @@ public static void syncSearchMessages() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOrderBy("orderBy-1207110587") + .setMarkupSyntax(MarkupSyntax.forNumber(0)) .build(); for (SearchMessageResult element : chatServiceClient.searchMessages(request).iterateAll()) { // doThingsWith(element); 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 d1d08daf5f2d..bedb53d67b64 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 @@ -2252,7 +2252,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=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @return The workerPool. */ @java.lang.Override @@ -2279,7 +2279,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=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @return The bytes for workerPool. */ @java.lang.Override @@ -4441,7 +4441,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=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @return The workerPool. */ @java.lang.Deprecated @@ -4467,7 +4467,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=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @return The bytes for workerPool. */ @java.lang.Deprecated @@ -4493,7 +4493,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=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @param value The workerPool to set. * @return This builder for chaining. */ @@ -4518,7 +4518,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=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4539,7 +4539,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=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @param value The bytes for workerPool to set. * @return This builder for chaining. */ 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 866640428d2d..1a6152862333 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=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @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=2573 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2579 * @return The bytes for workerPool. */ @java.lang.Deprecated 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 ddf5f442606d..ade37c0b4a34 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 @@ -664,18 +664,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tCANCELLED\020\007\022\013\n" + "\007EXPIRED\020\t:\217\001\352A\213\001\n" + "\037cloudbuild.googleapis.com/Build\022!projects/{project}/builds/{build}\0226pro" - + "jects/{project}/locations/{location}/builds/{build}*\006builds2\005build\"\325\003\n\n" + + "jects/{project}/locations/{location}/builds/{build}*\006builds2\005build\"\356\003\n\n" + "Dependency\022\017\n" + "\005empty\030\001 \001(\010H\000\022S\n\n" + "git_source\030\002 \001(\0132=" - + ".google.devtools.cloudbuild.v1.Dependency.GitSourceDependencyH\000\032\321\001\n" + + ".google.devtools.cloudbuild.v1.Dependency.GitSourceDependencyH\000\032\352\001\n" + "\023GitSourceDependency\022V\n\n" + "repository\030\001 \001(\0132=.google.dev" + "tools.cloudbuild.v1.Dependency.GitSourceRepositoryB\003\340A\002\022\025\n" + "\010revision\030\002 \001(\tB\003\340A\002\022\037\n" + "\022recurse_submodules\030\003 \001(\010B\003\340A\001\022\022\n" + "\005depth\030\004 \001(\003B\003\340A\001\022\026\n" - + "\tdest_path\030\005 \001(\tB\003\340A\002\032\205\001\n" + + "\tdest_path\030\005 \001(\tB\003\340A\002\022\027\n\n" + + "fetch_tags\030\006 \001(\010B\003\340A\001\032\205\001\n" + "\023GitSourceRepository\022\r\n" + "\003url\030\001 \001(\tH\000\022S\n" + "\021developer_connect\030\002 \001(\tB6\372A3\n" @@ -683,28 +684,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010repotypeB\005\n" + "\003dep\"\260\001\n" + "\tGitConfig\022A\n" - + "\004http\030\001" - + " \001(\01323.google.devtools.cloudbuild.v1.GitConfig.HttpConfig\032`\n\n" + + "\004http\030\001 \001(\01323.google" + + ".devtools.cloudbuild.v1.GitConfig.HttpConfig\032`\n\n" + "HttpConfig\022R\n" + "\031proxy_secret_version_name\030\001 \001(\tB/\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\"\264\007\n" + "\tArtifacts\022\016\n" + "\006images\030\001 \003(\t\022I\n" - + "\007objects\030\002" - + " \001(\01328.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects\022O\n" - + "\017maven_artifacts\030\003" - + " \003(\01326.google.devtools.cloudbuild.v1.Artifacts.MavenArtifact\022J\n\n" - + "go_modules\030\004 " - + "\003(\01321.google.devtools.cloudbuild.v1.Artifacts.GoModuleB\003\340A\001\022O\n" - + "\017python_packages\030\005" - + " \003(\01326.google.devtools.cloudbuild.v1.Artifacts.PythonPackage\022I\n" - + "\014npm_packages\030\006 \003" - + "(\01323.google.devtools.cloudbuild.v1.Artifacts.NpmPackage\032p\n" + + "\007objects\030\002 \001(\01328.google.d" + + "evtools.cloudbuild.v1.Artifacts.ArtifactObjects\022O\n" + + "\017maven_artifacts\030\003 \003(\01326.googl" + + "e.devtools.cloudbuild.v1.Artifacts.MavenArtifact\022J\n\n" + + "go_modules\030\004 \003(\01321.google.de" + + "vtools.cloudbuild.v1.Artifacts.GoModuleB\003\340A\001\022O\n" + + "\017python_packages\030\005 \003(\01326.google.d" + + "evtools.cloudbuild.v1.Artifacts.PythonPackage\022I\n" + + "\014npm_packages\030\006 \003(\01323.google.dev" + + "tools.cloudbuild.v1.Artifacts.NpmPackage\032p\n" + "\017ArtifactObjects\022\020\n" + "\010location\030\001 \001(\t\022\r\n" + "\005paths\030\002 \003(\t\022<\n" - + "\006timing\030\003 " - + "\001(\0132\'.google.devtools.cloudbuild.v1.TimeSpanB\003\340A\003\032n\n\r" + + "\006timing\030\003" + + " \001(\0132\'.google.devtools.cloudbuild.v1.TimeSpanB\003\340A\003\032n\n\r" + "MavenArtifact\022\022\n\n" + "repository\030\001 \001(\t\022\021\n" + "\004path\030\002 \001(\tB\003\340A\001\022\023\n" @@ -718,7 +719,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013source_path\030\004 \001(\tB\003\340A\001\022\030\n" + "\013module_path\030\005 \001(\tB\003\340A\001\022\033\n" + "\016module_version\030\006 \001(\tB\003\340A\001\0322\n\r" - + "PythonPackage\022\022\n\n" + + "PythonPackage\022\022\n" + + "\n" + "repository\030\001 \001(\t\022\r\n" + "\005paths\030\002 \003(\t\032;\n\n" + "NpmPackage\022\022\n\n" @@ -734,18 +736,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132,.google.devtools.cloudbuild.v1.StorageSource\022G\n" + "\024resolved_repo_source\030\006" + " \001(\0132).google.devtools.cloudbuild.v1.RepoSource\022^\n" - + " resolved_storage_source_manifest\030\t \001(\01324.google.de" - + "vtools.cloudbuild.v1.StorageSourceManifest\022^\n" + + " resolved_storage_source_manifest\030\t" + + " \001(\01324.google.devtools.cloudbuild.v1.StorageSourceManifest\022^\n" + "\035resolved_connected_repository\030\n" + " \001(\01322.google.devtools.cloudbuild.v1.ConnectedRepositoryB\003\340A\003\022J\n" - + "\023resolved_git_source\030\013" - + " \001(\0132(.google.devtools.cloudbuild.v1.GitSourceB\003\340A\003\022Y\n" - + "\013file_hashes\030\004 \003(\0132?.go" - + "ogle.devtools.cloudbuild.v1.SourceProvenance.FileHashesEntryB\003\340A\003\032\\\n" + + "\023resolved_git_source\030\013 \001(\0132(.googl" + + "e.devtools.cloudbuild.v1.GitSourceB\003\340A\003\022Y\n" + + "\013file_hashes\030\004 \003(\0132?.google.devtools.c" + + "loudbuild.v1.SourceProvenance.FileHashesEntryB\003\340A\003\032\\\n" + "\017FileHashesEntry\022\013\n" + "\003key\030\001 \001(\t\0228\n" - + "\005value\030\002 \001(\0132).googl" - + "e.devtools.cloudbuild.v1.FileHashes:\0028\001\"D\n\n" + + "\005value\030\002" + + " \001(\0132).google.devtools.cloudbuild.v1.FileHashes:\0028\001\"D\n\n" + "FileHashes\0226\n" + "\tfile_hash\030\001 \003(\0132#.google.devtools.cloudbuild.v1.Hash\"\232\001\n" + "\004Hash\022:\n" @@ -764,8 +766,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014InlineSecret\022<\n" + "\014kms_key_name\030\001 \001(\tB&\372A#\n" + "!cloudkms.googleapis.com/CryptoKey\022H\n" - + "\007env_map\030\002 \003(\01327.google" - + ".devtools.cloudbuild.v1.InlineSecret.EnvMapEntry\032-\n" + + "\007env_map\030\002" + + " \003(\01327.google.devtools.cloudbuild.v1.InlineSecret.EnvMapEntry\032-\n" + "\013EnvMapEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\014:\0028\001\"i\n" @@ -775,8 +777,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003env\030\002 \001(\t\"\232\001\n" + "\006Secret\022\024\n" + "\014kms_key_name\030\001 \001(\t\022H\n\n" - + "secret_env\030\003" - + " \003(\01324.google.devtools.cloudbuild.v1.Secret.SecretEnvEntry\0320\n" + + "secret_env\030\003 \003(\013" + + "24.google.devtools.cloudbuild.v1.Secret.SecretEnvEntry\0320\n" + "\016SecretEnvEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\014:\0028\001\"\235\001\n" @@ -805,15 +807,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\002 \001(\tB\003\340A\002\"p\n" + "\023ApproveBuildRequest\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022F\n" - + "\017approval_result\030\002 \001(\0132-.googl" - + "e.devtools.cloudbuild.v1.ApprovalResult\"\267\002\n\r" + + "\017approval_result\030\002" + + " \001(\0132-.google.devtools.cloudbuild.v1.ApprovalResult\"\267\002\n\r" + "BuildApproval\022F\n" - + "\005state\030\001 \001(\01622.googl" - + "e.devtools.cloudbuild.v1.BuildApproval.StateB\003\340A\003\022B\n" + + "\005state\030\001" + + " \001(\01622.google.devtools.cloudbuild.v1.BuildApproval.StateB\003\340A\003\022B\n" + "\006config\030\002" + " \001(\0132-.google.devtools.cloudbuild.v1.ApprovalConfigB\003\340A\003\022B\n" - + "\006result\030\003" - + " \001(\0132-.google.devtools.cloudbuild.v1.ApprovalResultB\003\340A\003\"V\n" + + "\006result\030\003 \001(\0132-" + + ".google.devtools.cloudbuild.v1.ApprovalResultB\003\340A\003\"V\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007PENDING\020\001\022\014\n" @@ -825,8 +827,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ApprovalResult\022\035\n" + "\020approver_account\030\002 \001(\tB\003\340A\003\0226\n\r" + "approval_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022M\n" - + "\010decision\030\004 \001" - + "(\01626.google.devtools.cloudbuild.v1.ApprovalResult.DecisionB\003\340A\002\022\024\n" + + "\010decision\030\004 \001(\01626.google.dev" + + "tools.cloudbuild.v1.ApprovalResult.DecisionB\003\340A\002\022\024\n" + "\007comment\030\005 \001(\tB\003\340A\001\022\020\n" + "\003url\030\006 \001(\tB\003\340A\001\"@\n" + "\010Decision\022\030\n" @@ -838,8 +840,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "repository\030\006 \001(\tB)\372A&\n" + "$cloudbuild.googleapis.com/RepositoryH\000\022\013\n" + "\003ref\030\002 \001(\t\022H\n" - + "\trepo_type\030\003" - + " \001(\01625.google.devtools.cloudbuild.v1.GitFileSource.RepoType\022Y\n" + + "\trepo_type\030\003 \001" + + "(\01625.google.devtools.cloudbuild.v1.GitFileSource.RepoType\022Y\n" + "\030github_enterprise_config\030\004 \001(\tB5\372A2\n" + "0cloudbuild.googleapis.com/GithubEnterpriseConfigH\001B\010\n" + "\006sourceB\023\n" @@ -849,8 +851,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003uri\030\002 \001(\t\022?\n\n" + "repository\030\007 \001(\tB)\372A&\n" + "$cloudbuild.googleapis.com/RepositoryH\000\022H\n" - + "\trepo_type\030\003 " - + "\001(\01625.google.devtools.cloudbuild.v1.GitFileSource.RepoType\022\020\n" + + "\trepo_type\030\003 \001(\01625.google.de" + + "vtools.cloudbuild.v1.GitFileSource.RepoType\022\020\n" + "\010revision\030\004 \001(\t\022Y\n" + "\030github_enterprise_config\030\005 \001(\tB5\372A2\n" + "0cloudbuild.googleapis.com/GithubEnterpriseConfigH\001\"d\n" @@ -862,8 +864,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006GITLAB\020\004B\010\n" + "\006sourceB\023\n" + "\021enterprise_config\"\322\t\n" - + "\014BuildTrigger\022\025\n" - + "\r" + + "\014BuildTrigger\022\025\n\r" + "resource_name\030\" \001(\t\022\017\n" + "\002id\030\001 \001(\tB\003\340A\003\022\023\n" + "\013description\030\n" @@ -875,18 +876,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006github\030\r" + " \001(\01321.google.devtools.cloudbuild.v1.GitHubEventsConfig\022B\n\r" + "pubsub_config\030\035 \001(\0132+.google.devtools.cloudbuild.v1.PubsubConfig\022D\n" - + "\016webhook_config\030\037 \001(\0132,.goo" - + "gle.devtools.cloudbuild.v1.WebhookConfig\022\024\n\n" + + "\016webhook_config\030\037" + + " \001(\0132,.google.devtools.cloudbuild.v1.WebhookConfig\022\024\n\n" + "autodetect\030\022 \001(\010H\000\0225\n" + "\005build\030\004 \001(\0132$.google.devtools.cloudbuild.v1.BuildH\000\022\022\n" + "\010filename\030\010 \001(\tH\000\022G\n" - + "\017git_file_source\030\030 \001" - + "(\0132,.google.devtools.cloudbuild.v1.GitFileSourceH\000\0224\n" + + "\017git_file_source\030\030" + + " \001(\0132,.google.devtools.cloudbuild.v1.GitFileSourceH\000\0224\n" + "\013create_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\020\n" + "\010disabled\030\t \001(\010\022U\n\r" - + "substitutions\030\013 \003(\0132>.google.devto" - + "ols.cloudbuild.v1.BuildTrigger.SubstitutionsEntry\022\025\n\r" + + "substitutions\030\013" + + " \003(\0132>.google.devtools.cloudbuild.v1.BuildTrigger.SubstitutionsEntry\022\025\n\r" + "ignored_files\030\017 \003(\t\022\026\n" + "\016included_files\030\020 \003(\t\022\023\n" + "\006filter\030\036 \001(\tB\003\340A\001\022E\n" @@ -894,22 +895,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132,.google.devtools.cloudbuild.v1.GitRepoSource\022?\n" + "\017service_account\030! \001(\tB&\372A#\n" + "!iam.googleapis.com/ServiceAccount\022U\n" - + "\027repository_event_config\030\'" - + " \001(\01324.google.devtools.cloudbuild.v1.RepositoryEventConfig\0324\n" + + "\027repository_event_config\030\' \001(\01324.google" + + ".devtools.cloudbuild.v1.RepositoryEventConfig\0324\n" + "\022SubstitutionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\242\001\352A\236\001\n" - + "&cloudbuild.googleapis.com/BuildTrigger\022%projects/{project}/triggers/{trigger}" - + "\022:projects/{project}/locations/{location" - + "}/triggers/{trigger}*\010triggers2\007triggerB\020\n" + + "&cloudbuild.googleapis.com/BuildTrigger\022%projects/{pr" + + "oject}/triggers/{trigger}\022:projects/{pro" + + "ject}/locations/{location}/triggers/{trigger}*\010triggers2\007triggerB\020\n" + "\016build_template\"\265\003\n" + "\025RepositoryEventConfig\022=\n\n" + "repository\030\001 \001(\tB)\372A&\n" + "$cloudbuild.googleapis.com/Repository\022a\n" - + "\017repository_type\030\002 \001(\0162C.google.devtools.cloudbuild" - + ".v1.RepositoryEventConfig.RepositoryTypeB\003\340A\003\022H\n" - + "\014pull_request\030\003 \001(\01320.google.dev" - + "tools.cloudbuild.v1.PullRequestFilterH\000\0229\n" + + "\017repository_type\030\002 \001(\0162C.g" + + "oogle.devtools.cloudbuild.v1.RepositoryEventConfig.RepositoryTypeB\003\340A\003\022H\n" + + "\014pull_request\030\003" + + " \001(\01320.google.devtools.cloudbuild.v1.PullRequestFilterH\000\0229\n" + "\004push\030\004 \001(\0132).google.devtools.cloudbuild.v1.PushFilterH\000\"k\n" + "\016RepositoryType\022\037\n" + "\033REPOSITORY_TYPE_UNSPECIFIED\020\000\022\n\n" @@ -921,8 +922,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017installation_id\030\001 \001(\003B\002\030\001\022\r\n" + "\005owner\030\006 \001(\t\022\014\n" + "\004name\030\007 \001(\t\022H\n" - + "\014pull_request\030\004 \001(\013" - + "20.google.devtools.cloudbuild.v1.PullRequestFilterH\000\0229\n" + + "\014pull_request\030\004" + + " \001(\01320.google.devtools.cloudbuild.v1.PullRequestFilterH\000\0229\n" + "\004push\030\005 \001(\0132).google.devtools.cloudbuild.v1.PushFilterH\000B\007\n" + "\005event\"\202\003\n" + "\014PubsubConfig\022@\n" @@ -950,8 +951,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013auth_method\"\224\002\n" + "\021PullRequestFilter\022\020\n" + "\006branch\030\002 \001(\tH\000\022X\n" - + "\017comment_control\030\005" - + " \001(\0162?.google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl\022\024\n" + + "\017comment_control\030\005 \001(\0162?.google.d" + + "evtools.cloudbuild.v1.PullRequestFilter.CommentControl\022\024\n" + "\014invert_regex\030\006 \001(\010\"r\n" + "\016CommentControl\022\025\n" + "\021COMMENTS_DISABLED\020\000\022\024\n" @@ -967,8 +968,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\003 \001(" + "\tB+\372A(\022&cloudbuild.googleapis.com/BuildTrigger\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022A\n" - + "\007trigger\030\002 \001(\0132+.google" - + ".devtools.cloudbuild.v1.BuildTriggerB\003\340A\002\"\205\001\n" + + "\007trigger\030\002" + + " \001(\0132+.google.devtools.cloudbuild.v1.BuildTriggerB\003\340A\002\"\205\001\n" + "\026GetBuildTriggerRequest\0229\n" + "\004name\030\003 \001(\tB+\372A(\n" + "&cloudbuild.googleapis.com/BuildTrigger\022\027\n\n" @@ -983,8 +984,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ListBuildTriggersResponse\022=\n" + "\010triggers\030\001 \003(\0132+.google.devtools.cloudbuild.v1.BuildTrigger\022\027\n" + "\017next_page_token\030\002 \001(\t\"\210\001\n" - + "\031DeleteBuildTriggerRequest\0229", - "\n" + + "\031De", + "leteBuildTriggerRequest\0229\n" + "\004name\030\003 \001(\tB+\372A(\n" + "&cloudbuild.googleapis.com/BuildTrigger\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\027\n\n" @@ -992,34 +993,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031UpdateBuildTriggerRequest\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\027\n\n" + "trigger_id\030\002 \001(\tB\003\340A\002\022A\n" - + "\007trigger\030\003" - + " \001(\0132+.google.devtools.cloudbuild.v1.BuildTriggerB\003\340A\002\022/\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" + "\014BuildOptions\022L\n" - + "\026source_provenance_hash\030\001 \003(\0162,.googl" - + "e.devtools.cloudbuild.v1.Hash.HashType\022Y\n" - + "\027requested_verify_option\030\002 \001(\01628.google" - + ".devtools.cloudbuild.v1.BuildOptions.VerifyOption\022M\n" - + "\014machine_type\030\003 \001(\01627.google" - + ".devtools.cloudbuild.v1.BuildOptions.MachineType\022\024\n" + + "\026source_provenance_hash\030\001" + + " \003(\0162,.google.devtools.cloudbuild.v1.Hash.HashType\022Y\n" + + "\027requested_verify_option\030\002" + + " \001(\01628.google.devtools.cloudbuild.v1.BuildOptions.VerifyOption\022M\n" + + "\014machine_type\030\003" + + " \001(\01627.google.devtools.cloudbuild.v1.BuildOptions.MachineType\022\024\n" + "\014disk_size_gb\030\006 \001(\003\022[\n" - + "\023substitution_option\030\004 \001(\0162>.google.devtools.cl" - + "oudbuild.v1.BuildOptions.SubstitutionOption\022\035\n" + + "\023substitution_option\030\004" + + " \001(\0162>.google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption\022\035\n" + "\025dynamic_substitutions\030\021 \001(\010\022\035\n" + "\025automap_substitutions\030\026 \001(\010\022\\\n" - + "\024log_streaming_option\030\005 \001(\0162>.google.devtools.cloudb" - + "uild.v1.BuildOptions.LogStreamingOption\022\027\n" + + "\024log_streaming_option\030\005 \001(\016" + + "2>.google.devtools.cloudbuild.v1.BuildOptions.LogStreamingOption\022\027\n" + "\013worker_pool\030\007 \001(\tB\002\030\001\022I\n" - + "\004pool\030\023 \001(\01326" - + ".google.devtools.cloudbuild.v1.BuildOptions.PoolOptionB\003\340A\001\022H\n" - + "\007logging\030\013 \001(\01627.g" - + "oogle.devtools.cloudbuild.v1.BuildOptions.LoggingMode\022\013\n" + + "\004pool\030\023 \001(\01326.google.devtool" + + "s.cloudbuild.v1.BuildOptions.PoolOptionB\003\340A\001\022H\n" + + "\007logging\030\013 \001(\01627.google.devtools." + + "cloudbuild.v1.BuildOptions.LoggingMode\022\013\n" + "\003env\030\014 \003(\t\022\022\n\n" + "secret_env\030\r" + " \003(\t\0226\n" + "\007volumes\030\016 \003(\0132%.google.devtools.cloudbuild.v1.Volume\022p\n" - + "\034default_logs_bucket_behavior\030\025 \001(\0162E.google.devtools.c" - + "loudbuild.v1.BuildOptions.DefaultLogsBucketBehaviorB\003\340A\001\022&\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" + "PoolOption\0227\n" + "\004name\030\001 \001(\tB)\372A&\n" @@ -1070,13 +1071,12 @@ 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.d" - + "evtools.cloudbuild.v1.GitHubEnterpriseSecretsB\003\340A\001\022\031\n" + + " \001(\01326.google.devtools.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\0223pro" - + "jects/{project}/githubEnterpriseConfigs/{config}\022Hprojects/{project}/locations/{" - + "location}/githubEnterpriseConfigs/{config}\"\355\002\n" + + "0cloudbuild.googleapis.com/GithubEnterpriseConfig\0223projects/{project}" + + "/githubEnterpriseConfigs/{config}\022Hproje" + + "cts/{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 +1090,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.devto" - + "ols.cloudbuild.v1.WorkerPool.AnnotationsEntry\0224\n" + + "\013annotations\030\004" + + " \003(\0132:.google.devtools.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.de" - + "vtools.cloudbuild.v1.PrivatePoolV1ConfigH\000\022\021\n" + + "\026private_pool_v1_config\030\014" + + " \001(\01322.google.devtools.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,18 +1110,17 @@ 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}/l" - + "ocations/{location}/workerPools/{worker_pool}*\013workerPools2\n" + + "$cloudbuild.googleapis.com/WorkerPool\022Aprojects/{project}/locations/{locat" + + "ion}/workerPools/{worker_pool}*\013workerPools2\n" + "workerPoolR\001\001B\010\n" + "\006config\"\272\007\n" + "\023PrivatePoolV1Config\022V\n\r" - + "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\220\001\n" + + "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" + "\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" @@ -1131,8 +1130,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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.cloudbuil" - + "d.v1.PrivatePoolV1Config.NetworkConfig.EgressOption\022$\n" + + "egress_option\030\002 \001(\0162M." + + "google.devtools.cloudbuild.v1.PrivatePoolV1Config.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" @@ -1160,8 +1159,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" @@ -1171,8 +1170,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"s\n" + "\027ListWorkerPoolsResponse\022?\n" - + "\014worker_pools\030\001 \003(\0132).go" - + "ogle.devtools.cloudbuild.v1.WorkerPool\022\027\n" + + "\014worker_pools\030\001" + + " \003(\0132).google.devtools.cloudbuild.v1.WorkerPool\022\027\n" + "\017next_page_token\030\002 \001(\t\"\307\001\n" + "!CreateWorkerPoolOperationMetadata\022>\n" + "\013worker_pool\030\001 \001(\tB)\372A&\n" @@ -1190,148 +1189,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.c" - + "loudbuild.v1.CreateBuildRequest\032\035.google.longrunning.Operation\"\325\001\312A\037\n" - + "\005Build\022\026Bui" - + "ldOperationMetadata\332A\020project_id,build\332A\006parent\202\323\344\223\002^\"" - + " /v1/projects/{project_id}" - + "/builds:\005buildZ3\"*/v1/{parent=projects/*/locations/*}/builds:\005build\212\323\344\223\002-\022+\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" + "\006parent\022!projects/*/locations/{location=*}\022\217\002\n" - + "\010GetBuild\022..google.devtools.cloudbuild" - + ".v1.GetBuildRequest\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}/bui" - + "lds/{id}Z,\022*/v1/{name=projects/*/locations/*/builds/*}\212\323\344\223\0024\0222\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" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\221\002\n\n" - + "ListBuilds\0220.google.devtools.cloudbuild.v1." - + "ListBuildsRequest\0321.google.devtools.clou" - + "dbuild.v1.ListBuildsResponse\"\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.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" + "\006parent\022!projects/*/locations/{location=*}\022\251\002\n" - + "\013CancelBuild\0221.google.devtools.cloudbuild.v1.Can" - + "celBuildRequest\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" + + "\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" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\300\002\n\n" - + "RetryBuild\0220.google.devtool" - + "s.cloudbuild.v1.RetryBuildRequest\032\035.google.longrunning.Operation\"\340\001\312A\037\n" + + "RetryBuild\0220.google.devtools.cloudbuild.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}/bu" - + "ilds/{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}:retry" + + ":\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.de" - + "vtools.cloudbuild.v1.ApproveBuildRequest\032\035.google.longrunning.Operation\"\335\001\312A\037\n" - + "\005Build\022\026BuildOperationMetadata\332A\024name,appr" - + "oval_result\202\323\344\223\002d\"&/v1/{name=projects/*/" - + "builds/*}:approve:\001*Z7\"2/v1/{name=projec" - + "ts/*/locations/*/builds/*}:approve:\001*\212\323\344\223\0024\0222\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" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\273\002\n" - + "\022CreateBuildTrigger\0228.google.devtools.cloudbuild.v1.CreateBui" - + "ldTriggerRequest\032+.google.devtools.cloud" - + "build.v1.BuildTrigger\"\275\001\332A\022project_id,tr" - + "igger\332A\006parent\202\323\344\223\002f\"\"/v1/projects/{proj" - + "ect_id}/triggers:\007triggerZ7\",/v1/{parent" - + "=projects/*/locations/*}/triggers:\007trigger\212\323\344\223\002-\022+\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" + "\006parent\022!projects/*/locations/{location=*}\022\272\002\n" - + "\017GetBuildTrigger\0225.google.devtools.cloudbuild.v1.GetBuildTrigge" - + "rRequest\032+.google.devtools.cloudbuild.v1" - + ".BuildTrigger\"\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" + + "\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" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\243\002\n" - + "\021ListBuildTriggers\0227.google.devtools.cloudbuild.v1.ListBuildTrigge" - + "rsRequest\0328.google.devtools.cloudbuild.v1.ListBuildTriggersResponse\"\232\001\332A\n" - + "project_id\202\323\344\223\002T\022\"/v1/projects/{project_id}/tri" - + "ggersZ.\022,/v1/{parent=projects/*/locations/*}/triggers\212\323\344\223\002-\022+\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" + "\006parent\022!projects/*/locations/{location=*}\022\253\002\n" - + "\022DeleteBuildTrigger\0228.google.devtools.cloudbuild.v1." - + "DeleteBuildTriggerRequest\032\026.google.proto" - + "buf.Empty\"\302\001\332A\025project_id,trigger_id\332A\004n" - + "ame\202\323\344\223\002a*//v1/projects/{project_id}/tri" - + "ggers/{trigger_id}Z.*,/v1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\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" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\366\002\n" - + "\022UpdateBuildTrigger\0228.google.devtools.cloudbuild.v1.UpdateBuildTrigger" - + "Request\032+.google.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.resource_name=projects/*/locations/*/triggers/*}:\007trigger\212\323\344\223\002G\022E\n" - + "\025trig" - + "ger.resource_name\022,projects/*/locations/{location=*}/triggers/*\022\341\002\n" - + "\017RunBuildTrigger\0225.google.devtools.cloudbuild.v1.RunB" - + "uildTriggerRequest\032\035.google.longrunning.Operation\"\367\001\312A\037\n" - + "\005Build\022\026BuildOperationMe" - + "tadata\332A\034project_id,trigger_id,source\202\323\344" - + "\223\002t\"3/v1/projects/{project_id}/triggers/" - + "{trigger_id}:run:\006sourceZ5\"0/v1/{name=pr" - + "ojects/*/locations/*/triggers/*}:run:\001*\212\323\344\223\0026\0224\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" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\225\002\n" - + "\025ReceiveTriggerWebhook\022;.google.devtools.cloudbuild.v1.Re" - + "ceiveTriggerWebhookRequest\032<.google.devtools.cloudbuild.v1.ReceiveTriggerWebhook" - + "Response\"\200\001\202\323\344\223\002z\"4/v1/projects/{project" - + "_id}/triggers/{trigger}:webhook:\004bodyZ<\"" - + "4/v1/{name=projects/*/locations/*/triggers/*}:webhook:\004body\022\271\002\n" - + "\020CreateWorkerPool\0226.google.devtools.cloudbuild.v1.CreateW" - + "orkerPoolRequest\032\035.google.longrunning.Operation\"\315\001\312A/\n\n" - + "WorkerPool\022!CreateWorkerPoolOperationMetadata\332A!parent,worker_poo" - + "l,worker_pool_id\202\323\344\223\002>\"//v1/{parent=proj" - + "ects/*/locations/*}/workerPools:\013worker_pool\212\323\344\223\002-\022+\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" + "\006parent\022!projects/*/locations/{location=*}\022\356\001\n\r" - + "GetWorkerPool\0223.google.devtools.cloudbuild.v1.GetWorkerPoolR" - + "equest\032).google.devtools.cloudbuild.v1.W" - + "orkerPool\"}\332A\004name\202\323\344\223\0021\022//v1/{name=proj" - + "ects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + + "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" + "\004name\022/projects/*/locations/{location=*}/workerPools/*\022\246\002\n" - + "\020DeleteWorkerPool\0226.google.devtools.cloudbuild.v1.DeleteWork" - + "erPoolRequest\032\035.google.longrunning.Operation\"\272\001\312A:\n" - + "\025google.protobuf.Empty\022!Delet" - + "eWorkerPoolOperationMetadata\332A\004name\202\323\344\223\002" - + "1*//v1/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\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" + "\004name\022/projects/*/locations/{location=*}/workerPools/*\022\323\002\n" - + "\020UpdateWorkerPool\0226.google.devtools.cloudbu" - + "ild.v1.UpdateWorkerPoolRequest\032\035.google.longrunning.Operation\"\347\001\312A/\n\n" - + "WorkerPool\022!UpdateWorkerPoolOperationMetadata\332A\027wor" - + "ker_pool,update_mask\202\323\344\223\002J2;/v1/{worker_" - + "pool.name=projects/*/locations/*/workerPools/*}:\013worker_pool\212\323\344\223\002E\022C\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" + "\020worker_pool.name\022/projects/*/locations/{location=*}/workerPools/*\022\365\001\n" - + "\017ListWorkerPools\0225.google.devtools.cloudbuild.v1.ListWorkerPo" - + "olsRequest\0326.google.devtools.cloudbuild." - + "v1.ListWorkerPoolsResponse\"s\332A\006parent\202\323\344" - + "\223\0021\022//v1/{parent=projects/*/locations/*}/workerPools\212\323\344\223\002-\022+\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" + "\006parent\022!projects/*/locations/{location=*}\022\240\002\n" - + "\030GetDefaultServiceAccount\022>.google.devtools.cloudbuil" - + "d.v1.GetDefaultServiceAccountRequest\0324.google.devtools.cloudbuild.v1.DefaultServ" - + "iceAccount\"\215\001\332A\004name\202\323\344\223\0029\0227/v1/{name=pr" - + "ojects/*/locations/*/defaultServiceAccount}\212\323\344\223\002A\022?\n" - + "\004name\0227projects/*/locations/{location=*}/defaultServiceAccount\032M\312A\031c" - + "loudbuild.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\256\n\n" - + "\030com.google.cloudbuild.v1P\001ZAcloud.google.c" - + "om/go/cloudbuild/apiv1/v2/cloudbuildpb;c" - + "loudbuildpb\242\002\003GCB\252\002\032Google.Cloud.CloudBu" - + "ild.V1\312\002\025Google\\Cloud\\Build\\V1\352\002\030Google::Cloud::Build::V1\352AN\n" - + "\036compute.googleapis" - + ".com/Network\022,projects/{project}/global/networks/{network}\352AY\n" - + "!iam.googleapis.co" - + "m/ServiceAccount\0224projects/{project}/serviceAccounts/{service_account}\352AJ\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" + "#secretmanager.googleapis.com/Secret\022#projects/{project}/secrets/{secret}\352Ad\n" - + "*secretmanager.googleapis.com/SecretVersion\0226proj" - + "ects/{project}/secrets/{secret}/versions/{version}\352Af\n" - + " gkehub.googleapis.com/Mem" - + "bership\022Bprojects/{project}/locations/{location}/memberships/{cluster_name}\352Ap\n" - + "!cloudkms.googleapis.com/CryptoKey\022Kproje" - + "cts/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}\352AU\n" - + "\"pubsub.googleapis.com/Subscription\022/projects/" - + "{project}/subscriptions/{subscription}\352A@\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" + "\033pubsub.googleapis.com/Topic\022!projects/{project}/topics/{topic}\352Av\n" - + "(compute.googleapis.com/NetworkAttachment\022Jprojects" - + "/{project}/regions/{region}/networkAttachments/{networkattachment}\352A\236\001\n" - + "1developerconnect.googleapis.com/GitRepositoryLin" - + "k\022iprojects/{project}/locations/{locatio" - + "n}/connections/{connection}/gitRepositoryLinks/{git_repository_link}\352A\202\001\n" - + "$cloudbuild.googleapis.com/Repository\022Zprojects" - + "/{project}/locations/{location}/connections/{connection}/repositories/{repositor" - + "y}b\006proto3" + + "(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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1632,7 +1630,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Dependency_GitSourceDependency_descriptor, new java.lang.String[] { - "Repository", "Revision", "RecurseSubmodules", "Depth", "DestPath", + "Repository", "Revision", "RecurseSubmodules", "Depth", "DestPath", "FetchTags", }); internal_static_google_devtools_cloudbuild_v1_Dependency_GitSourceRepository_descriptor = internal_static_google_devtools_cloudbuild_v1_Dependency_descriptor.getNestedType(1); diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Dependency.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Dependency.java index cdbe49eea25f..878e4c7df34d 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Dependency.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Dependency.java @@ -195,6 +195,22 @@ public interface GitSourceDependencyOrBuilder * @return The bytes for destPath. */ com.google.protobuf.ByteString getDestPathBytes(); + + /** + * + * + *
+     * Optional. True if remote tags should be fetched too (default false).
+     * Note: when depth is 1 (default), git fetch only retrieves tags pointing
+     * to commits within the shallow boundary. Set depth to -1 to fetch all
+     * historical tags.
+     * 
+ * + * bool fetch_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fetchTags. + */ + boolean getFetchTags(); } /** @@ -453,6 +469,28 @@ public com.google.protobuf.ByteString getDestPathBytes() { } } + public static final int FETCH_TAGS_FIELD_NUMBER = 6; + private boolean fetchTags_ = false; + + /** + * + * + *
+     * Optional. True if remote tags should be fetched too (default false).
+     * Note: when depth is 1 (default), git fetch only retrieves tags pointing
+     * to commits within the shallow boundary. Set depth to -1 to fetch all
+     * historical tags.
+     * 
+ * + * bool fetch_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fetchTags. + */ + @java.lang.Override + public boolean getFetchTags() { + return fetchTags_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -482,6 +520,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destPath_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, destPath_); } + if (fetchTags_ != false) { + output.writeBool(6, fetchTags_); + } getUnknownFields().writeTo(output); } @@ -506,6 +547,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destPath_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, destPath_); } + if (fetchTags_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, fetchTags_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -530,6 +574,7 @@ public boolean equals(final java.lang.Object obj) { if (getRecurseSubmodules() != other.getRecurseSubmodules()) return false; if (getDepth() != other.getDepth()) return false; if (!getDestPath().equals(other.getDestPath())) return false; + if (getFetchTags() != other.getFetchTags()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -553,6 +598,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDepth()); hash = (37 * hash) + DEST_PATH_FIELD_NUMBER; hash = (53 * hash) + getDestPath().hashCode(); + hash = (37 * hash) + FETCH_TAGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFetchTags()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -712,6 +759,7 @@ public Builder clear() { recurseSubmodules_ = false; depth_ = 0L; destPath_ = ""; + fetchTags_ = false; return this; } @@ -766,6 +814,9 @@ private void buildPartial0(com.google.cloudbuild.v1.Dependency.GitSourceDependen if (((from_bitField0_ & 0x00000010) != 0)) { result.destPath_ = destPath_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.fetchTags_ = fetchTags_; + } result.bitField0_ |= to_bitField0_; } @@ -801,6 +852,9 @@ public Builder mergeFrom(com.google.cloudbuild.v1.Dependency.GitSourceDependency bitField0_ |= 0x00000010; onChanged(); } + if (other.getFetchTags() != false) { + setFetchTags(other.getFetchTags()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -858,6 +912,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 48: + { + fetchTags_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1431,6 +1491,71 @@ public Builder setDestPathBytes(com.google.protobuf.ByteString value) { return this; } + private boolean fetchTags_; + + /** + * + * + *
+       * Optional. True if remote tags should be fetched too (default false).
+       * Note: when depth is 1 (default), git fetch only retrieves tags pointing
+       * to commits within the shallow boundary. Set depth to -1 to fetch all
+       * historical tags.
+       * 
+ * + * bool fetch_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fetchTags. + */ + @java.lang.Override + public boolean getFetchTags() { + return fetchTags_; + } + + /** + * + * + *
+       * Optional. True if remote tags should be fetched too (default false).
+       * Note: when depth is 1 (default), git fetch only retrieves tags pointing
+       * to commits within the shallow boundary. Set depth to -1 to fetch all
+       * historical tags.
+       * 
+ * + * bool fetch_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fetchTags to set. + * @return This builder for chaining. + */ + public Builder setFetchTags(boolean value) { + + fetchTags_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. True if remote tags should be fetched too (default false).
+       * Note: when depth is 1 (default), git fetch only retrieves tags pointing
+       * to commits within the shallow boundary. Set depth to -1 to fetch all
+       * historical tags.
+       * 
+ * + * bool fetch_tags = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFetchTags() { + bitField0_ = (bitField0_ & ~0x00000020); + fetchTags_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.Dependency.GitSourceDependency) } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java index be35bd0f1e62..e94f26eaded2 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java @@ -135,7 +135,7 @@ public EventCase getEventCase() { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2140 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2146 * @return The installationId. */ @java.lang.Override @@ -834,7 +834,7 @@ public Builder clearEvent() { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. - * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2140 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2146 * @return The installationId. */ @java.lang.Override @@ -853,7 +853,7 @@ public long getInstallationId() { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. - * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2140 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2146 * @param value The installationId to set. * @return This builder for chaining. */ @@ -876,7 +876,7 @@ public Builder setInstallationId(long value) { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. - * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2140 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2146 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java index fc40232d3a53..a4873de4f116 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java @@ -36,7 +36,7 @@ public interface GitHubEventsConfigOrBuilder * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2140 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2146 * @return The installationId. */ @java.lang.Deprecated 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 194fefc3d5d2..f67f368f9dd9 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 @@ -1312,6 +1312,12 @@ message Dependency { // Required. Where should the files be placed on the worker. string dest_path = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. True if remote tags should be fetched too (default false). + // Note: when depth is 1 (default), git fetch only retrieves tags pointing + // to commits within the shallow boundary. Set depth to -1 to fetch all + // historical tags. + bool fetch_tags = 6 [(google.api.field_behavior) = OPTIONAL]; } // A repository for a git source. diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/SupportEventSubscription.java b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/SupportEventSubscription.java index 9e8eb7890dc1..943426e33d10 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/SupportEventSubscription.java +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/java/com/google/cloud/support/v2/SupportEventSubscription.java @@ -25,6 +25,19 @@ * *
  * A support event subscription.
+ *
+ * You can also manage support event subscriptions using other tools:
+ *
+ * * [`gcloud support
+ * support-event-subscriptions`](/sdk/gcloud/reference/support/support-event-subscriptions)
+ * (or [`gcloud
+ * beta`](/sdk/gcloud/reference/beta/support/support-event-subscriptions)
+ * for beta)
+ * * [Terraform
+ * `google_cloud_support_support_event_subscription`](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_support_support_event_subscription)
+ * (or [google-beta
+ * provider](https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/cloud_support_support_event_subscription)
+ * for beta)
  * 
* * Protobuf type {@code google.cloud.support.v2.SupportEventSubscription} @@ -1135,6 +1148,19 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * *
    * A support event subscription.
+   *
+   * You can also manage support event subscriptions using other tools:
+   *
+   * * [`gcloud support
+   * support-event-subscriptions`](/sdk/gcloud/reference/support/support-event-subscriptions)
+   * (or [`gcloud
+   * beta`](/sdk/gcloud/reference/beta/support/support-event-subscriptions)
+   * for beta)
+   * * [Terraform
+   * `google_cloud_support_support_event_subscription`](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_support_support_event_subscription)
+   * (or [google-beta
+   * provider](https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/cloud_support_support_event_subscription)
+   * for beta)
    * 
* * Protobuf type {@code google.cloud.support.v2.SupportEventSubscription} diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/support_event_subscription.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/support_event_subscription.proto index 5ba4585f680b..a27a868ca7ae 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/support_event_subscription.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/src/main/proto/google/cloud/support/v2/support_event_subscription.proto @@ -29,6 +29,19 @@ option php_namespace = "Google\\Cloud\\Support\\V2"; option ruby_package = "Google::Cloud::Support::V2"; // A support event subscription. +// +// You can also manage support event subscriptions using other tools: +// +// * [`gcloud support +// support-event-subscriptions`](/sdk/gcloud/reference/support/support-event-subscriptions) +// (or [`gcloud +// beta`](/sdk/gcloud/reference/beta/support/support-event-subscriptions) +// for beta) +// * [Terraform +// `google_cloud_support_support_event_subscription`](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_support_support_event_subscription) +// (or [google-beta +// provider](https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/cloud_support_support_event_subscription) +// for beta) message SupportEventSubscription { option (google.api.resource) = { type: "cloudsupport.googleapis.com/SupportEventSubscription" diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscription.java b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscription.java index a6cb009d5a99..51c0f9e19863 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscription.java +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/java/com/google/cloud/support/v2beta/SupportEventSubscription.java @@ -25,6 +25,19 @@ * *
  * A support event subscription.
+ *
+ * You can also manage support event subscriptions using other tools:
+ *
+ * * [`gcloud support
+ * support-event-subscriptions`](/sdk/gcloud/reference/support/support-event-subscriptions)
+ * (or [`gcloud
+ * beta`](/sdk/gcloud/reference/beta/support/support-event-subscriptions)
+ * for beta)
+ * * [Terraform
+ * `google_cloud_support_support_event_subscription`](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_support_support_event_subscription)
+ * (or [google-beta
+ * provider](https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/cloud_support_support_event_subscription)
+ * for beta)
  * 
* * Protobuf type {@code google.cloud.support.v2beta.SupportEventSubscription} @@ -1136,6 +1149,19 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * *
    * A support event subscription.
+   *
+   * You can also manage support event subscriptions using other tools:
+   *
+   * * [`gcloud support
+   * support-event-subscriptions`](/sdk/gcloud/reference/support/support-event-subscriptions)
+   * (or [`gcloud
+   * beta`](/sdk/gcloud/reference/beta/support/support-event-subscriptions)
+   * for beta)
+   * * [Terraform
+   * `google_cloud_support_support_event_subscription`](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_support_support_event_subscription)
+   * (or [google-beta
+   * provider](https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/cloud_support_support_event_subscription)
+   * for beta)
    * 
* * Protobuf type {@code google.cloud.support.v2beta.SupportEventSubscription} diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/support_event_subscription.proto b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/support_event_subscription.proto index dc47136abe6d..bfc0aa4a940d 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/support_event_subscription.proto +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/src/main/proto/google/cloud/support/v2beta/support_event_subscription.proto @@ -29,6 +29,19 @@ option php_namespace = "Google\\Cloud\\Support\\V2beta"; option ruby_package = "Google::Cloud::Support::V2beta"; // A support event subscription. +// +// You can also manage support event subscriptions using other tools: +// +// * [`gcloud support +// support-event-subscriptions`](/sdk/gcloud/reference/support/support-event-subscriptions) +// (or [`gcloud +// beta`](/sdk/gcloud/reference/beta/support/support-event-subscriptions) +// for beta) +// * [Terraform +// `google_cloud_support_support_event_subscription`](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_support_support_event_subscription) +// (or [google-beta +// provider](https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/cloud_support_support_event_subscription) +// for beta) message SupportEventSubscription { option (google.api.resource) = { type: "cloudsupport.googleapis.com/SupportEventSubscription" diff --git a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataSubscriptionServiceClient.java b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataSubscriptionServiceClient.java index a640fb50e42d..a33bb8e2bc84 100644 --- a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataSubscriptionServiceClient.java +++ b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/DataSubscriptionServiceClient.java @@ -419,7 +419,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * } * * @param parent Required. The parent resource where this subscriber will be created. Format: - * projects/{project} Example: projects/my-project-123 + * projects/{project_number} Example: projects/1234567890 * @param subscriber Required. The subscriber to create. * @param subscriberId Optional. The ID to use for the subscriber, which will become the final * component of the subscriber's resource name. @@ -483,7 +483,7 @@ public final OperationFuture createSubscri * } * * @param parent Required. The parent resource where this subscriber will be created. Format: - * projects/{project} Example: projects/my-project-123 + * projects/{project_number} Example: projects/1234567890 * @param subscriber Required. The subscriber to create. * @param subscriberId Optional. The ID to use for the subscriber, which will become the final * component of the subscriber's resource name. diff --git a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataPointsServiceStubSettings.java b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataPointsServiceStubSettings.java index de99a8e6e2a2..a5127768155b 100644 --- a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataPointsServiceStubSettings.java +++ b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/DataPointsServiceStubSettings.java @@ -169,10 +169,21 @@ public class DataPointsServiceStubSettings extends StubSettings DEFAULT_SERVICE_SCOPES = ImmutableList.builder() .add("https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly") + .add("https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly") .add( "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly") + .add( + "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly") .add("https://www.googleapis.com/auth/googlehealth.location.readonly") + .add("https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly") + .add("https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly") + .add("https://www.googleapis.com/auth/googlehealth.mindfulness.readonly") + .add("https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly") + .add("https://www.googleapis.com/auth/googlehealth.nutrition.writeonly") + .add("https://www.googleapis.com/auth/googlehealth.reproductive_health.readonly") + .add("https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly") .add("https://www.googleapis.com/auth/googlehealth.sleep.readonly") + .add("https://www.googleapis.com/auth/googlehealth.sleep.writeonly") .build(); private final UnaryCallSettings getDataPointSettings; diff --git a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/HealthProfileServiceStubSettings.java b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/HealthProfileServiceStubSettings.java index 99d449f4cb41..46ad1c49ceba 100644 --- a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/HealthProfileServiceStubSettings.java +++ b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/HealthProfileServiceStubSettings.java @@ -134,8 +134,13 @@ public class HealthProfileServiceStubSettings .add( "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly") .add("https://www.googleapis.com/auth/googlehealth.irn.readonly") + .add("https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly") + .add("https://www.googleapis.com/auth/googlehealth.mindfulness.readonly") .add("https://www.googleapis.com/auth/googlehealth.profile.readonly") + .add("https://www.googleapis.com/auth/googlehealth.profile.writeonly") + .add("https://www.googleapis.com/auth/googlehealth.reproductive_health.readonly") .add("https://www.googleapis.com/auth/googlehealth.settings.readonly") + .add("https://www.googleapis.com/auth/googlehealth.settings.writeonly") .add("https://www.googleapis.com/auth/googlehealth.sleep.readonly") .build(); diff --git a/java-health/google-cloud-health/src/main/resources/META-INF/native-image/com.google.devicesandservices.health.v4/reflect-config.json b/java-health/google-cloud-health/src/main/resources/META-INF/native-image/com.google.devicesandservices.health.v4/reflect-config.json index 63ab00be48e9..a7ba27923251 100644 --- a/java-health/google-cloud-health/src/main/resources/META-INF/native-image/com.google.devicesandservices.health.v4/reflect-config.json +++ b/java-health/google-cloud-health/src/main/resources/META-INF/native-image/com.google.devicesandservices.health.v4/reflect-config.json @@ -2465,6 +2465,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devicesandservices.health.v4.MenstrualPeriod", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devicesandservices.health.v4.MenstrualPeriod$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devicesandservices.health.v4.MetricsSummary", "queryAllDeclaredConstructors": true, @@ -2519,6 +2537,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devicesandservices.health.v4.Moods", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devicesandservices.health.v4.Moods$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devicesandservices.health.v4.Moods$Mood", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devicesandservices.health.v4.Moods$Valence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devicesandservices.health.v4.Nutrient", "queryAllDeclaredConstructors": true, @@ -2690,6 +2744,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devicesandservices.health.v4.OvulationTest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devicesandservices.health.v4.OvulationTest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devicesandservices.health.v4.OvulationTestResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devicesandservices.health.v4.OxygenSaturation", "queryAllDeclaredConstructors": true, @@ -3383,6 +3464,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devicesandservices.health.v4.Symptoms", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devicesandservices.health.v4.Symptoms$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devicesandservices.health.v4.Symptoms$SymptomValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devicesandservices.health.v4.TimeInHeartRateZone", "queryAllDeclaredConstructors": true, diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/CreateSubscriberRequest.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/CreateSubscriberRequest.java index 3eca8dd24584..30d08b51946c 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/CreateSubscriberRequest.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/CreateSubscriberRequest.java @@ -83,8 +83,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource where this subscriber will be created.
-   * Format: projects/{project}
-   * Example: projects/my-project-123
+   * Format: projects/{project_number}
+   * Example: projects/1234567890
    * 
* * @@ -111,8 +111,8 @@ public java.lang.String getParent() { * *
    * Required. The parent resource where this subscriber will be created.
-   * Format: projects/{project}
-   * Example: projects/my-project-123
+   * Format: projects/{project_number}
+   * Example: projects/1234567890
    * 
* * @@ -646,8 +646,8 @@ public Builder mergeFrom( * *
      * Required. The parent resource where this subscriber will be created.
-     * Format: projects/{project}
-     * Example: projects/my-project-123
+     * Format: projects/{project_number}
+     * Example: projects/1234567890
      * 
* * @@ -673,8 +673,8 @@ public java.lang.String getParent() { * *
      * Required. The parent resource where this subscriber will be created.
-     * Format: projects/{project}
-     * Example: projects/my-project-123
+     * Format: projects/{project_number}
+     * Example: projects/1234567890
      * 
* * @@ -700,8 +700,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource where this subscriber will be created.
-     * Format: projects/{project}
-     * Example: projects/my-project-123
+     * Format: projects/{project_number}
+     * Example: projects/1234567890
      * 
* * @@ -726,8 +726,8 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource where this subscriber will be created.
-     * Format: projects/{project}
-     * Example: projects/my-project-123
+     * Format: projects/{project_number}
+     * Example: projects/1234567890
      * 
* * @@ -748,8 +748,8 @@ public Builder clearParent() { * *
      * Required. The parent resource where this subscriber will be created.
-     * Format: projects/{project}
-     * Example: projects/my-project-123
+     * Format: projects/{project_number}
+     * Example: projects/1234567890
      * 
* * diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/CreateSubscriberRequestOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/CreateSubscriberRequestOrBuilder.java index a7f9bd3b4af8..1fbfa46411e5 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/CreateSubscriberRequestOrBuilder.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/CreateSubscriberRequestOrBuilder.java @@ -31,8 +31,8 @@ public interface CreateSubscriberRequestOrBuilder * *
    * Required. The parent resource where this subscriber will be created.
-   * Format: projects/{project}
-   * Example: projects/my-project-123
+   * Format: projects/{project_number}
+   * Example: projects/1234567890
    * 
* * @@ -48,8 +48,8 @@ public interface CreateSubscriberRequestOrBuilder * *
    * Required. The parent resource where this subscriber will be created.
-   * Format: projects/{project}
-   * Example: projects/my-project-123
+   * Format: projects/{project_number}
+   * Example: projects/1234567890
    * 
* * diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DailyRollUpDataPointsRequest.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DailyRollUpDataPointsRequest.java index 7c7fa7c6797c..fb0ea57bb669 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DailyRollUpDataPointsRequest.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DailyRollUpDataPointsRequest.java @@ -334,10 +334,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -368,10 +372,14 @@ public java.lang.String getDataSourceFamily() { * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1519,10 +1527,14 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1552,10 +1564,14 @@ public java.lang.String getDataSourceFamily() { * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1585,10 +1601,14 @@ public com.google.protobuf.ByteString getDataSourceFamilyBytes() { * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1617,10 +1637,14 @@ public Builder setDataSourceFamily(java.lang.String value) { * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1645,10 +1669,14 @@ public Builder clearDataSourceFamily() { * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DailyRollUpDataPointsRequestOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DailyRollUpDataPointsRequestOrBuilder.java index 7a67fdc2bfe2..a1c649154e33 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DailyRollUpDataPointsRequestOrBuilder.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DailyRollUpDataPointsRequestOrBuilder.java @@ -200,10 +200,14 @@ public interface DailyRollUpDataPointsRequestOrBuilder * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -223,10 +227,14 @@ public interface DailyRollUpDataPointsRequestOrBuilder * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataCoordinatesProto.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataCoordinatesProto.java index fa91a10f41f1..45552b7c826f 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataCoordinatesProto.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataCoordinatesProto.java @@ -107,14 +107,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ampB\003\340A\002\0222\n\nutc_offset\030\002 \001(\0132\031.google.pr" + "otobuf.DurationB\003\340A\002\022K\n\ncivil_time\030\003 \001(\013" + "22.google.devicesandservices.health.v4.C" - + "ivilDateTimeB\003\340A\003B\212\002\n\'com.google.devices" + + "ivilDateTimeB\003\340A\003B\206\002\n\'com.google.devices" + "andservices.health.v4B\024DataCoordinatesPr" - + "otoP\001ZRgoogle.golang.org/genproto/google" - + "apis/devicesandservices/health/apiv4main" - + ";healthpb\252\002#Google.DevicesAndServices.He" - + "alth.V4\312\002#Google\\DevicesAndServices\\Heal" - + "th\\V4\352\002&Google::DevicesAndServices::Heal" - + "th::V4b\006proto3" + + "otoP\001ZNgoogle.golang.org/genproto/google" + + "apis/devicesandservices/health/apiv4;hea" + + "lthpb\252\002#Google.DevicesAndServices.Health" + + ".V4\312\002#Google\\DevicesAndServices\\Health\\V" + + "4\352\002&Google::DevicesAndServices::Health::" + + "V4b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataModelProto.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataModelProto.java index 4f5ce67d1121..534b972073a5 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataModelProto.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataModelProto.java @@ -412,6 +412,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_devicesandservices_health_v4_ActiveEnergyBurnedRollupValue_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_devicesandservices_health_v4_ActiveEnergyBurnedRollupValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devicesandservices_health_v4_MenstrualPeriod_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_devicesandservices_health_v4_MenstrualPeriod_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devicesandservices_health_v4_OvulationTest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_devicesandservices_health_v4_OvulationTest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devicesandservices_health_v4_Symptoms_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_devicesandservices_health_v4_Symptoms_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devicesandservices_health_v4_Moods_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_devicesandservices_health_v4_Moods_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -669,7 +685,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025_beats_per_minute_avgB\033\n" + "\031_sampling_frequency_hertzB\034\n" + "\032_millivolts_scaling_factorB\016\n" - + "\014_lead_number\"\263\020\n" + + "\014_lead_number\"\202\'\n" + "\010Exercise\022O\n" + "\010interval\030\002 \001(" + "\01328.google.devicesandservices.health.v4.SessionTimeIntervalB\003\340A\002\022V\n\r" @@ -728,25 +744,196 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020ExerciseMetadata\022)\n" + "\027pool_length_millimeters\030\001 \001(\003B\003\340A\001H\000\210\001\001\022\024\n" + "\007has_gps\030\002 \001(\010B\003\340A\001B\032\n" - + "\030_pool_length_millimeters\"\320\001\n" + + "\030_pool_length_millimeters\"\237\030\n" + "\014ExerciseType\022\035\n" - + "\031EXERCISE_TYPE_UNSPECIFIED\020\000\022\013\n" + + "\031EXERCISE_TYPE_UNSPECIFIED\020\000\022\023\n" + + "\017AEROBIC_WORKOUT\020\r" + + "\022\013\n" + + "\007ARCHERY\020/\022\021\n" + + "\014ASSAULT_BIKE\020\244\001\022\020\n" + + "\013BACKPACKING\020\265\001\022\r\n" + + "\tBADMINTON\0200\022\n\n" + + "\006BALLET\020g\022\023\n" + + "\016BALLROOM_DANCE\020\234\001\022\017\n" + + "\013BARRE_CLASS\0201\022\014\n" + + "\010BASEBALL\0202\022\016\n\n" + + "BASKETBALL\0203\022\n\n" + + "\006BIKING\020\003\022\016\n" + + "\tBILLIARDS\020\264\001\022\020\n" + + "\013BODY_WEIGHT\020\225\001\022\014\n" + + "\010BOOTCAMP\020\016\022\013\n" + + "\007BOWLING\0204\022\n\n" + + "\006BOXING\0205\022\021\n" + + "\014BREAKDANCING\020\235\001\022\020\n" + + "\014CALISTHENICS\0206\022\014\n" + + "\010CANOEING\020\017\022\022\n\r" + + "CARDIO_SCULPT\020\201\001\022\023\n" + + "\016CARDIO_WORKOUT\020\214\001\022\r\n" + + "\tCARPENTRY\020l\022\021\n" + + "\014CHEERLEADING\020\245\001\022\024\n" + + "\020CIRCUIT_TRAINING\020\020\022\014\n" + + "\010CLEANING\020i\022\014\n" + + "\010CLIMBING\0207\022\021\n\r" + + "CORE_TRAINING\020\021\022\013\n" + + "\007CRICKET\0208\022\013\n" + + "\007CROQUET\020o\022\025\n" + + "\021CROSS_COUNTRY_SKI\020\022\022\022\n" + + "\016CROSS_TRAINING\0209\022\014\n" + + "\010CROSSFIT\020\023\022\013\n" + + "\007CURLING\020:\022\013\n" + + "\007DANCING\020\024\022\n\n" + + "\006DIVING\020;\022\022\n\r" + + "ELECTRIC_BIKE\020\230\001\022\025\n" + + "\020ELECTRIC_SCOOTER\020\250\001\022\016\n\n" + + "ELLIPTICAL\020\025\022\025\n" + + "\021EQUESTRIAN_SPORTS\020<\022\022\n" + + "\016EXERCISE_CLASS\020=\022\013\n" + + "\007FENCING\020>\022\020\n" + + "\014FIELD_HOCKEY\020q\022\013\n" + + "\007FISHING\020?\022\022\n" + + "\016FITNESS_GAMING\020@\022\014\n" + + "\007FOILING\020\257\001\022\025\n" + + "\021FOOTBALL_AMERICAN\020A\022\027\n" + + "\023FOOTBALL_AUSTRALIAN\020B\022\021\n" + + "\014FREE_WEIGHTS\020\224\001\022\033\n" + + "\027FRISBEE_PLAYING_GENERAL\020C\022 \n" + + "\034FUNCTIONAL_STRENGTH_TRAINING\020D\022\r\n" + + "\tGARDENING\020k\022\010\n" + + "\004GOLF\020\026\022\016\n\n" + + "GYMNASTICS\020E\022\014\n" + + "\010HANDBALL\020F\022\020\n" + + "\014HAND_CYCLING\020G\022\010\n" + + "\004HIIT\020\t\022\n\n" + + "\006HIKING\020\005\022\014\n" + + "\007HIP_HOP\020\236\001\022\n\n" + + "\006HOCKEY\020H\022\n\n" + + "\006HOEING\020m\022\025\n" + + "\020HOUSEHOLD_CHORES\020\211\001\022\013\n" + + "\007HUNTING\020I\022\017\n" + + "\013ICE_SKATING\020\177\022\020\n" + + "\013INCLINE_RUN\020\216\001\022\021\n" + + "\014INCLINE_WALK\020\222\001\022\023\n" + + "\017INDOOR_CLIMBING\020\027\022\024\n" + + "\020INTERVAL_WORKOUT\020\030\022\017\n\n" + + "JAZZ_DANCE\020\232\001\022\016\n" + + "\tJIU_JITSU\020\240\001\022\020\n" + + "\014JUMPING_ROPE\020J\022\013\n" + + "\006KARATE\020\237\001\022\014\n" + + "\010KAYAKING\020\031\022\016\n\n" + + "KICKBOXING\020\032\022\020\n" + + "\013KITESURFING\020\254\001\022\014\n" + + "\010LACROSSE\020K\022\020\n" + + "\014MARTIAL_ARTS\020\033\022\014\n" + + "\010MEDITATE\020\034\022\021\n" + + "\014MODERN_DANCE\020\231\001\022\r\n" + + "\tMOTOCROSS\020r\022\016\n\n" + + "MOTORCYCLE\020y\022\022\n\r" + + "MOUNTAIN_BIKE\020\200\001\022\017\n" + + "\013MOWING_LAWN\020j\022\016\n" + + "\tMUAY_THAI\020\242\001\022\016\n\n" + + "MULTISPORT\020L\022\030\n" + + "\023MUSICAL_PERFORMANCE\020\243\001\022\023\n" + + "\016NORDIC_WALKING\020\221\001\022\020\n" + + "\014ORIENTEERING\020s\022\t\n" + + "\005OTHER\020\014\022\020\n" + + "\014OUTDOOR_BIKE\020\035\022\023\n" + + "\017OUTDOOR_WORKOUT\020\036\022\022\n" + + "\016PADDLEBOARDING\020\037\022\n\n" + + "\005PADEL\020\260\001\022\r\n" + + "\010PAINTING\020\252\001\022\017\n" + + "\013PARAGLIDING\020N\022\014\n" + + "\007PARKOUR\020\246\001\022\016\n\n" + + "PICKELBALL\020O\022\013\n" + + "\007PILATES\020\007\022\010\n" + + "\004POLO\020t\022\020\n" + + "\014POWERLIFTING\020 \022\022\n\r" + + "POWER_WALKING\020\217\001\022\022\n\r" + + "RACKET_SPORTS\020\251\001\022\017\n" + + "\013RACQUETBALL\020P\022\025\n" + + "\020RESISTANCE_BANDS\020\227\001\022\021\n\r" + + "ROCK_CLIMBING\020{\022\021\n\r" + + "ROLLERBLADING\020!\022\022\n" + + "\016ROLLER_SKATING\020v\022\n\n" + + "\006ROWING\020Q\022\022\n" + + "\016ROWING_MACHINE\020\"\022\014\n" + + "\007RUCKING\020\220\001\022\t\n" + + "\005RUGBY\020R\022\013\n" + "\007RUNNING\020\001\022\013\n" - + "\007WALKING\020\002\022\n\n" - + "\006BIKING\020\003\022\014\n" - + "\010SWIMMING\020\004\022\n\n" - + "\006HIKING\020\005\022\010\n" - + "\004YOGA\020\006\022\013\n" - + "\007PILATES\020\007\022\013\n" - + "\007WORKOUT\020\010\022\010\n" - + "\004HIIT\020\t\022\021\n\r" + + "\007SAILING\020S\022\017\n\n" + + "SCOOTERING\020\247\001\022\020\n" + + "\014SCUBA_DIVING\020T\022\014\n" + + "\010SHOOTING\020h\022\016\n" + + "\tSHOVELING\020\253\001\022\021\n\r" + + "SKATEBOARDING\020u\022\013\n" + + "\007SKATING\020#\022\n\n" + + "\006SKIING\020$\022\016\n" + + "\tSKYDIVING\020\266\001\022\016\n\n" + + "SNORKELING\020%\022\020\n" + + "\014SNOWBOARDING\020&\022\021\n" + + "\014SNOWMOBILING\020\263\001\022\017\n" + + "\013SNOWSHOEING\020U\022\016\n\n" + + "SNOW_SPORT\020V\022\n\n" + + "\006SOCCER\020W\022\014\n" + + "\010SOFTBALL\020X\022\022\n" + + "\r" + + "SPEED_SKATING\020\262\001\022\014\n" + + "\010SPINNING\020\'\022\t\n" + + "\005SPORT\020(\022\n\n" + + "\006SQUASH\020Y\022\020\n" + + "\014STAIRCLIMBER\020)\022\024\n" + + "\017STATIONARY_BIKE\020\213\001\022\021\n\r" + + "STEP_TRAINING\020Z\022\025\n" + + "\021STRENGTH_TRAINING\020\013\022\016\n\n" + + "STRETCHING\020*\022\021\n\r" + + "STROLLER_WALK\020z\022\013\n" + + "\007SURFING\020+\022\014\n" + + "\010SWIMMING\020\004\022\027\n" + + "\023SWIMMING_OPEN_WATER\020[\022\021\n\r" + + "SWIMMING_POOL\020e\022\032\n" + + "\025SYNCHRONIZED_SWIMMING\020\261\001\022\023\n" + + "\016TABATA_WORKOUT\020\202\001\022\020\n" + + "\014TABLE_TENNIS\020\\\022\016\n" + + "\tTAEKWONDO\020\241\001\022\013\n" + + "\007TAI_CHI\020]\022\n\n" + + "\005TANGO\020\233\001\022\n\n" + + "\006TENNIS\020,\022\023\n" + + "\017TRACK_AND_FIELD\020^\022\016\n" + + "\tTRAIL_RUN\020\215\001\022\016\n\n" + + "TRAMPOLINE\020w\022\r\n" + + "\tTREADMILL\020-\022\023\n" + + "\016TREADMILL_WALK\020\212\001\022\010\n" + + "\003TRX\020\203\001\022\024\n" + + "\020ULTIMATE_FRISBEE\020p\022\016\n\n" + + "UNICYCLING\020f\022\016\n\n" + + "VOLLEYBALL\020_\022\024\n" + + "\020VOLLEYBALL_BEACH\020x\022\021\n" + + "\014WAKEBOARDING\020\255\001\022\013\n" + + "\007WALKING\020\002\022\026\n" + + "\021WALK_WITH_WEIGHTS\020\223\001\022\022\n" + + "\016WATER_AEROBICS\020`\022\021\n\r" + + "WATER_JOGGING\020~\022\016\n\n" + + "WATER_POLO\020a\022\020\n" + + "\014WATER_SKIING\020|\022\017\n" + + "\013WATER_SPORT\020b\022\024\n" + + "\020WATER_VOLLEYBALL\020}\022\013\n" + + "\007WEEDING\020n\022\021\n\r" + "WEIGHTLIFTING\020\n" - + "\022\025\n" - + "\021STRENGTH_TRAINING\020\013\022\t\n" - + "\005OTHER\020\014\"\200\001\n" + + "\022\024\n" + + "\017WEIGHT_MACHINES\020\226\001\022\013\n" + + "\007WEIGHTS\020.\022\016\n\n" + + "WHEELCHAIR\020c\022\020\n" + + "\013WINDSURFING\020\256\001\022\013\n" + + "\007WORKOUT\020\010\022\r\n" + + "\tWRESTLING\020d\022\010\n" + + "\004YOGA\020\006\022\020\n" + + "\013YOGA_BIKRAM\020\204\001\022\017\n\n" + + "YOGA_HATHA\020\205\001\022\017\n\n" + + "YOGA_POWER\020\206\001\022\021\n" + + "\014YOGA_VINYASA\020\207\001\022\n\n" + + "\005ZUMBA\020\210\001\"\200\001\n" + "\006Floors\022S\n" - + "\010interval\030\002 \001(\0132<.google.devicesan" - + "dservices.health.v4.ObservationTimeIntervalB\003\340A\002\022\027\n" + + "\010interval\030\002 \001(\0132<.g" + + "oogle.devicesandservices.health.v4.ObservationTimeIntervalB\003\340A\002\022\027\n" + "\005count\030\004 \001(\003B\003\340A\002H\000\210\001\001B\010\n" + "\006_count\"9\n" + "\021FloorsRollupValue\022\026\n" @@ -756,16 +943,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024gain_millimeters_sum\030\001 \001(\003H\000\210\001\001B\027\n" + "\025_gain_millimeters_sum\"\250\005\n" + "\tHeartRate\022T\n" - + "\013sample_time\030\002 \001(\0132:.google.devicesand" - + "services.health.v4.ObservationSampleTimeB\003\340A\002\022\"\n" + + "\013sample_time\030\002 \001(\0132:.go" + + "ogle.devicesandservices.health.v4.ObservationSampleTimeB\003\340A\002\022\"\n" + "\020beats_per_minute\030\004 \001(\003B\003\340A\002H\000\210\001\001\022W\n" - + "\010metadata\030\006 \001(\0132@.google.devicesands" - + "ervices.health.v4.HeartRate.HeartRateMetadataB\003\340A\001\032\262\003\n" + + "\010metadata\030\006 \001(\0132@.goo" + + "gle.devicesandservices.health.v4.HeartRate.HeartRateMetadataB\003\340A\001\032\262\003\n" + "\021HeartRateMetadata\022k\n" - + "\016motion_context\030\001 \001(\0162N.google.devicesandserv" - + "ices.health.v4.HeartRate.HeartRateMetadata.MotionContextB\003\340A\001\022m\n" - + "\017sensor_location\030\002 \001(\0162O.google.devicesandservices.healt" - + "h.v4.HeartRate.HeartRateMetadata.SensorLocationB\003\340A\001\"J\n\r" + + "\016motion_context\030\001 \001(\0162N.google" + + ".devicesandservices.health.v4.HeartRate.HeartRateMetadata.MotionContextB\003\340A\001\022m\n" + + "\017sensor_location\030\002 \001(\0162O.google.devicesan" + + "dservices.health.v4.HeartRate.HeartRateMetadata.SensorLocationB\003\340A\001\"J\n\r" + "MotionContext\022\036\n" + "\032MOTION_CONTEXT_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\r\n" @@ -794,8 +981,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_rate_maxB\013\n" + "\t_rate_avg\"\220\001\n" + "\tRunVO2Max\022T\n" - + "\013sample_time\030\001 \001(" - + "\0132:.google.devicesandservices.health.v4.ObservationSampleTimeB\003\340A\002\022\035\n" + + "\013sample_time\030\001 \001(\0132:.google.devicesandserv" + + "ices.health.v4.ObservationSampleTimeB\003\340A\002\022\035\n" + "\013run_vo2_max\030\002 \001(\001B\003\340A\002H\000\210\001\001B\016\n" + "\014_run_vo2_max\"\222\002\n" + ",HeartRateVariabilityPersonalRangeRollupValue\022<\n" @@ -806,13 +993,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "0_average_heart_rate_variability_milliseconds_minB2\n" + "0_average_heart_rate_variability_milliseconds_max\"\233\001\n" + "\006Height\022T\n" - + "\013sample_time\030\001 \001(\0132:.google.devicesa" - + "ndservices.health.v4.ObservationSampleTimeB\003\340A\002\022$\n" + + "\013sample_time\030\001 \001(\0132:." + + "google.devicesandservices.health.v4.ObservationSampleTimeB\003\340A\002\022$\n" + "\022height_millimeters\030\002 \001(\003B\003\340A\002H\000\210\001\001B\025\n" + "\023_height_millimeters\"\312\002\n" + "\024HeartRateVariability\022T\n" - + "\013sample_time\030\001 \001(\0132:.goo" - + "gle.devicesandservices.health.v4.ObservationSampleTimeB\003\340A\002\022I\n" + + "\013sample_time\030\001" + + " \001(\0132:.google.devicesandservices.health.v4.ObservationSampleTimeB\003\340A\002\022I\n" + "7root_mean_square_of_successive_differences_milliseconds\030\002" + " \001(\001B\003\340A\001H\000\210\001\001\0221\n" + "\037standard_deviation_milliseconds\030\003" @@ -821,29 +1008,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " _standard_deviation_milliseconds\"\221\001\n" + "\016VolumeQuantity\022\035\n" + "\013milliliters\030\001 \001(\001B\003\340A\002H\000\210\001\001\022P\n" - + "\022user_provided_unit\030\002 \001(\0162" - + "/.google.devicesandservices.health.v4.VolumeUnitB\003\340A\001B\016\n" + + "\022user_provided_unit\030\002" + + " \001(\0162/.google.devicesandservices.health.v4.VolumeUnitB\003\340A\001B\016\n" + "\014_milliliters\"\262\001\n" + "\014HydrationLog\022O\n" - + "\010interval\030\001 \001(\01328.google.device" - + "sandservices.health.v4.SessionTimeIntervalB\003\340A\002\022Q\n" - + "\017amount_consumed\030\002 \001(\01323.googl" - + "e.devicesandservices.health.v4.VolumeQuantityB\003\340A\002\"\254\002\n" + + "\010interval\030\001 \001(\0132" + + "8.google.devicesandservices.health.v4.SessionTimeIntervalB\003\340A\002\022Q\n" + + "\017amount_consumed\030\002" + + " \001(\01323.google.devicesandservices.health.v4.VolumeQuantityB\003\340A\002\"\254\002\n" + "\027HydrationLogRollupValue\022j\n" - + "\017amount_consumed\030\001 \001(\0132Q.google.devices" - + "andservices.health.v4.HydrationLogRollupValue.VolumeQuantityRollup\032\244\001\n" + + "\017amount_consumed\030\001 \001(\0132Q.google.devicesandservices.health.v4.Hyd" + + "rationLogRollupValue.VolumeQuantityRollup\032\244\001\n" + "\024VolumeQuantityRollup\022!\n" + "\017milliliters_sum\030\001 \001(\001B\003\340A\002H\000\210\001\001\022U\n" - + "\027user_provided_unit_last\030\002 \001(\0162" - + "/.google.devicesandservices.health.v4.VolumeUnitB\003\340A\001B\022\n" + + "\027user_provided_unit_last\030\002" + + " \001(\0162/.google.devicesandservices.health.v4.VolumeUnitB\003\340A\001B\022\n" + "\020_milliliters_sum\"\275\010\n" + "\033IrregularRhythmNotification\022O\n" - + "\010interval\030\001 " - + "\001(\01328.google.devicesandservices.health.v4.SessionTimeIntervalB\003\340A\002\022h\n\r" - + "alert_windows\030\005 \003(\0132L.google.devicesandservices.he" - + "alth.v4.IrregularRhythmNotification.AlertWindowB\003\340A\001\022X\n" - + "\023medical_device_info\030\006 \001(" - + "\01326.google.devicesandservices.health.v4.MedicalDeviceInfoB\003\340A\003\032\375\001\n" + + "\010interval\030\001 \001(\01328.google.devicesandse" + + "rvices.health.v4.SessionTimeIntervalB\003\340A\002\022h\n\r" + + "alert_windows\030\005 \003(\0132L.google.device" + + "sandservices.health.v4.IrregularRhythmNotification.AlertWindowB\003\340A\001\022X\n" + + "\023medical_device_info\030\006 \001(\01326.google.devicesandserv", + "ices.health.v4.MedicalDeviceInfoB\003\340A\003\032\375\001\n" + "\tHeartBeat\0226\n\r" + "physical_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\0222\n\n" + "utc_offset\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\002\022K\n\n" @@ -858,13 +1045,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010end_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\0226\n" + "\016end_utc_offset\030\004" + " \001(\0132\031.google.protobuf.DurationB\003\340A\002\022Q\n" - + "\020civil_start_time\030\005" - + " \001(\01322.google.devicesandservices.health.v4.CivilDateTimeB\003\340A\003\022O\n" - + "\016civil_end_time\030\006" - + " \001(\01322.google.devicesandservices.health.v4.CivilDateTimeB\003\340A\003\022\025\n" + + "\020civil_start_time\030\005 \001(\01322.goog" + + "le.devicesandservices.health.v4.CivilDateTimeB\003\340A\003\022O\n" + + "\016civil_end_time\030\006 \001(\01322.goo" + + "gle.devicesandservices.health.v4.CivilDateTimeB\003\340A\003\022\025\n" + "\010positive\030\007 \001(\010B\003\340A\001\022d\n" - + "\013heart_beats\030\010 \003(\0132J.google.devicesandservices.health.v4.I" - + "rregularRhythmNotification.HeartBeatB\003\340A\001\"\230\014\n" + + "\013heart_beats\030\010 \003(\0132J.google.devicesandservi" + + "ces.health.v4.IrregularRhythmNotification.HeartBeatB\003\340A\001\"\230\014\n" + "\016MetricsSummary\022\037\n\r" + "calories_kcal\030\001 \001(\001B\003\340A\001H\000\210\001\001\022&\n" + "\024distance_millimeters\030\002 \001(\001B\003\340A\001H\001\210\001\001\022\027\n" @@ -880,11 +1067,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013run_vo2_max\030\n" + " \001(\001B\003\340A\001H\010\210\001\001\022$\n" + "\022total_swim_lengths\030\013 \001(\001B\003\340A\001H\t\210\001\001\022p\n" - + "\031heart_rate_zone_durations\030\014 \001(\0132H.google.de" - + "vicesandservices.health.v4.MetricsSummary.TimeInHeartRateZonesB\003\340A\001\022b\n" + + "\031heart_rate_zone_durations\030\014 \001(\0132H.google.devicesandservices.health.v" + + "4.MetricsSummary.TimeInHeartRateZonesB\003\340A\001\022b\n" + "\020mobility_metrics\030\r" - + " \001(\0132C.google.devicesandservice" - + "s.health.v4.MetricsSummary.MobilityMetricsB\003\340A\001\032\353\001\n" + + " \001(\0132C.google.de" + + "vicesandservices.health.v4.MetricsSummary.MobilityMetricsB\003\340A\001\032\353\001\n" + "\024TimeInHeartRateZones\0222\n\n" + "light_time\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\0225\n\r" + "moderate_time\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\0225\n\r" @@ -917,37 +1104,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_total_swim_lengths\"\205\001\n" + "\016WeightQuantity\022\027\n" + "\005grams\030\001 \001(\001B\003\340A\002H\000\210\001\001\022P\n" - + "\022user_provided_unit\030\002 \001(\0162/.g" - + "oogle.devicesandservices.health.v4.WeightUnitB\003\340A\001B\010\n" + + "\022user_provided_unit\030\002" + + " \001(\0162/.google.devicesandservices.health.v4.WeightUnitB\003\340A\001B\010\n" + "\006_grams\"\203\001\n" + "\016EnergyQuantity\022\026\n" + "\004kcal\030\001 \001(\001B\003\340A\002H\000\210\001\001\022P\n" - + "\022user_provided_unit\030\002" - + " \001(\0162/.google.devicesandservices.health.v4.EnergyUnitB\003\340A\001B\007\n" + + "\022user_provided_unit\030\002 \001(\0162/.google.devi" + + "cesandservices.health.v4.EnergyUnitB\003\340A\001B\007\n" + "\005_kcal\"\244\001\n" + "\020NutrientQuantity\022J\n" - + "\010quantity\030\001 \001(\01323.goog" - + "le.devicesandservices.health.v4.WeightQuantityB\003\340A\002\022D\n" - + "\010nutrient\030\002 \001(\0162-.google.d" - + "evicesandservices.health.v4.NutrientB\003\340A\002\"\202\007\n" + + "\010quantity\030\001" + + " \001(\01323.google.devicesandservices.health.v4.WeightQuantityB\003\340A\002\022D\n" + + "\010nutrient\030\002" + + " \001(\0162-.google.devicesandservices.health.v4.NutrientB\003\340A\002\"\202\007\n" + "\014NutritionLog\022O\n" - + "\010interval\030\002 \001(\01328.google.devicesandservices.health.v4.Sessi", - "onTimeIntervalB\003\340A\002\022M\n" - + "\tnutrients\030\003 \003(\01325" - + ".google.devicesandservices.health.v4.NutrientQuantityB\003\340A\001\022H\n" - + "\006energy\030\004 \001(\01323.goo" - + "gle.devicesandservices.health.v4.EnergyQuantityB\003\340A\001\022Q\n" - + "\017energy_from_fat\030\005 \001(\01323." - + "google.devicesandservices.health.v4.EnergyQuantityB\003\340A\001\022T\n" - + "\022total_carbohydrate\030\007 " - + "\001(\01323.google.devicesandservices.health.v4.WeightQuantityB\003\340A\001\022K\n" - + "\ttotal_fat\030\010 \001(\013" - + "23.google.devicesandservices.health.v4.WeightQuantityB\003\340A\001\022E\n" + + "\010interval\030\002" + + " \001(\01328.google.devicesandservices.health.v4.SessionTimeIntervalB\003\340A\002\022M\n" + + "\tnutrients\030\003" + + " \003(\01325.google.devicesandservices.health.v4.NutrientQuantityB\003\340A\001\022H\n" + + "\006energy\030\004" + + " \001(\01323.google.devicesandservices.health.v4.EnergyQuantityB\003\340A\001\022Q\n" + + "\017energy_from_fat\030\005" + + " \001(\01323.google.devicesandservices.health.v4.EnergyQuantityB\003\340A\001\022T\n" + + "\022total_carbohydrate\030\007" + + " \001(\01323.google.devicesandservices.health.v4.WeightQuantityB\003\340A\001\022K\n" + + "\ttotal_fat\030\010" + + " \001(\01323.google.devicesandservices.health.v4.WeightQuantityB\003\340A\001\022E\n" + "\tmeal_type\030\r" + " \001(\0162-.google.devicesandservices.health.v4.MealTypeB\003\340A\001\022O\n" - + "\007serving\030\016 \001(\01329.google.devi" - + "cesandservices.health.v4.NutritionLog.ServingB\003\340A\001\0225\n" - + "\004food\030\017 \001(\tB\'\340A\002\372A!\n" + + "\007serving\030\016 \001(" + + "\01329.google.devicesandservices.health.v4.NutritionLog.ServingB\003\340A\001\0225\n" + + "\004food\030\017 \001(\tB\'\340A\001\372A!\n" + "\037health.googleapis.com/DataPoint\022\031\n" + "\021food_display_name\030\020 \001(\t\032\247\001\n" + "\007Serving\022\030\n" @@ -959,30 +1146,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004Food\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\022\n" + "\005brand\030\003 \001(\tB\003\340A\001\022O\n" - + "\014access_level\030\004 \001(\01624.google.devicesand" - + "services.health.v4.FoodAccessLevelB\003\340A\002\022\030\n" + + "\014access_level\030\004 \001(\01624.go" + + "ogle.devicesandservices.health.v4.FoodAccessLevelB\003\340A\002\022\030\n" + "\013description\030\005 \001(\tB\003\340A\001\022\032\n\r" + "language_code\030\006 \001(\tB\003\340A\001\022E\n" + "\tmeal_type\030\n" + " \001(\0162-.google.devicesandservices.health.v4.MealTypeB\003\340A\001\022M\n" - + "\tnutrients\030\014 \003(\01325.google.devices" - + "andservices.health.v4.NutrientQuantityB\003\340A\001\022Q\n" + + "\tnutrients\030\014 \003(\01325" + + ".google.devicesandservices.health.v4.NutrientQuantityB\003\340A\001\022Q\n" + "\017energy_from_fat\030\r" + " \001(\01323.google.devicesandservices.health.v4.EnergyQuantityB\003\340A\001\022T\n" - + "\022total_carbohydrate\030\016 \001(\01323.goo" - + "gle.devicesandservices.health.v4.WeightQuantityB\003\340A\001\022K\n" - + "\ttotal_fat\030\017 \001(\01323.google" - + ".devicesandservices.health.v4.WeightQuantityB\003\340A\001\022L\n\n" - + "energy_min\030\020 \001(\01323.google.d" - + "evicesandservices.health.v4.EnergyQuantityB\003\340A\001\022L\n\n" - + "energy_avg\030\021 \001(\01323.google.dev" - + "icesandservices.health.v4.EnergyQuantityB\003\340A\001\022L\n\n" - + "energy_max\030\022 \001(\01323.google.devic" - + "esandservices.health.v4.EnergyQuantityB\003\340A\001\022S\n" - + "\017default_serving\030\023 \001(\01325.google.de" - + "vicesandservices.health.v4.Food.FoodServingB\003\340A\002\022L\n" - + "\010servings\030\024 \003(\01325.google.devi" - + "cesandservices.health.v4.Food.FoodServingB\003\340A\001\032\374\001\n" + + "\022total_carbohydrate\030\016" + + " \001(\01323.google.devicesandservices.health.v4.WeightQuantityB\003\340A\001\022K\n" + + "\ttotal_fat\030\017" + + " \001(\01323.google.devicesandservices.health.v4.WeightQuantityB\003\340A\001\022L\n\n" + + "energy_min\030\020" + + " \001(\01323.google.devicesandservices.health.v4.EnergyQuantityB\003\340A\001\022L\n\n" + + "energy_avg\030\021 \001" + + "(\01323.google.devicesandservices.health.v4.EnergyQuantityB\003\340A\001\022L\n\n" + + "energy_max\030\022 \001(\013" + + "23.google.devicesandservices.health.v4.EnergyQuantityB\003\340A\001\022S\n" + + "\017default_serving\030\023 " + + "\001(\01325.google.devicesandservices.health.v4.Food.FoodServingB\003\340A\002\022L\n" + + "\010servings\030\024 \003(" + + "\01325.google.devicesandservices.health.v4.Food.FoodServingB\003\340A\001\032\374\001\n" + "\013FoodServing\022\030\n" + "\006amount\030\001 \001(\001B\003\340A\001H\000\210\001\001\022F\n" + "\025food_measurement_unit\030\002 \001(\tB\'\340A\002\372A!\n" @@ -992,34 +1179,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "multiplier\030\005 \001(\001B\003\340A\001B\t\n" + "\007_amount\"\244\010\n" + "\027NutritionLogRollupValue\022f\n" - + "\tnutrients\030\001 \003(\0132S.google.de" - + "vicesandservices.health.v4.NutritionLogRollupValue.NutrientQuantityRollup\022a\n" - + "\006energy\030\002 \001(\0132Q.google.devicesandservices.he" - + "alth.v4.NutritionLogRollupValue.EnergyQuantityRollup\022j\n" - + "\017energy_from_fat\030\003 \001(\0132Q.google.devicesandservices.health.v4.Nutr" - + "itionLogRollupValue.EnergyQuantityRollup\022m\n" - + "\022total_carbohydrate\030\004 \001(\0132Q.google.de" - + "vicesandservices.health.v4.NutritionLogRollupValue.WeightQuantityRollup\022d\n" - + "\ttotal_fat\030\005 \001(\0132Q.google.devicesandservices.h" - + "ealth.v4.NutritionLogRollupValue.WeightQuantityRollup\032\230\001\n" + + "\tnutrients\030\001 \003(\0132S.google.devicesandservices.health.v" + + "4.NutritionLogRollupValue.NutrientQuantityRollup\022a\n" + + "\006energy\030\002 \001(\0132Q.google.device" + + "sandservices.health.v4.NutritionLogRollupValue.EnergyQuantityRollup\022j\n" + + "\017energy_from_fat\030\003 \001(\0132Q.google.devicesandservices" + + ".health.v4.NutritionLogRollupValue.EnergyQuantityRollup\022m\n" + + "\022total_carbohydrate\030\004 \001(\0132Q.google.devicesandservices.health.v" + + "4.NutritionLogRollupValue.WeightQuantityRollup\022d\n" + + "\ttotal_fat\030\005 \001(\0132Q.google.devic" + + "esandservices.health.v4.NutritionLogRollupValue.WeightQuantityRollup\032\230\001\n" + "\024WeightQuantityRollup\022\033\n" + "\tgrams_sum\030\001 \001(\001B\003\340A\002H\000\210\001\001\022U\n" - + "\027user_provided_unit_last\030\002" - + " \001(\0162/.google.devicesandservices.health.v4.WeightUnitB\003\340A\001B\014\n\n" + + "\027user_provided_unit_last\030\002 \001(\0162/.go" + + "ogle.devicesandservices.health.v4.WeightUnitB\003\340A\001B\014\n\n" + "_grams_sum\032\226\001\n" + "\024EnergyQuantityRollup\022\032\n" + "\010kcal_sum\030\001 \001(\001B\003\340A\002H\000\210\001\001\022U\n" - + "\027user_provided_unit_last\030\002" - + " \001(\0162/.google.devicesandservices.health.v4.EnergyUnitB\003\340A\001B\013\n" + + "\027user_provided_unit_last\030\002 \001(\0162/.google.d" + + "evicesandservices.health.v4.EnergyUnitB\003\340A\001B\013\n" + "\t_kcal_sum\032\310\001\n" + "\026NutrientQuantityRollup\022h\n" - + "\010quantity\030\001 \001(\0132Q.google.devicesandservices.healt" - + "h.v4.NutritionLogRollupValue.WeightQuantityRollupB\003\340A\002\022D\n" - + "\010nutrient\030\002 \001(\0162-.googl" - + "e.devicesandservices.health.v4.NutrientB\003\340A\002\"\225\001\n" + + "\010quantity\030\001 \001(\0132Q.google.devicesan" + + "dservices.health.v4.NutritionLogRollupValue.WeightQuantityRollupB\003\340A\002\022D\n" + + "\010nutrient\030\002" + + " \001(\0162-.google.devicesandservices.health.v4.NutrientB\003\340A\002\"\225\001\n" + "\020OxygenSaturation\022T\n" - + "\013sample_time\030\001" - + " \001(\0132:.google.devicesandservices.health.v4.ObservationSampleTimeB\003\340A\002\022\034\n\n" + + "\013sample_time\030\001 \001(\0132:.google.devicesan" + + "dservices.health.v4.ObservationSampleTimeB\003\340A\002\022\034\n\n" + "percentage\030\002 \001(\001B\003\340A\002H\000\210\001\001B\r\n" + "\013_percentage\"\242\001\n" + "(RestingHeartRatePersonalRangeRollupValue\022!\n" @@ -1031,42 +1218,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014display_name\030\001 \001(\tB\003\340A\002\022 \n" + "\023plural_display_name\030\002 \001(\tB\003\340A\001\"\356\006\n" + "\033RespiratoryRateSleepSummary\022T\n" - + "\013sample_time\030\001 \001(\0132:.google.devicesandse" - + "rvices.health.v4.ObservationSampleTimeB\003\340A\002\022\205\001\n" - + "\020deep_sleep_stats\030\002 \001(\0132f.google." - + "devicesandservices.health.v4.Respiratory" - + "RateSleepSummary.RespiratoryRateSleepSummaryStatisticsB\003\340A\001\022\206\001\n" - + "\021light_sleep_stats\030\003 \001(\0132f.google.devicesandservices.heal" - + "th.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsB\003\340A\001\022\204\001\n" - + "\017rem_sleep_stats\030\004 \001(\0132f.google.devicesa" + + "\013sample_time\030\001 \001(\0132:.goog" + + "le.devicesandservices.health.v4.ObservationSampleTimeB\003\340A\002\022\205\001\n" + + "\020deep_sleep_stats\030\002 \001(\0132f.google.devicesandservices.health" + + ".v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsB\003\340A\001\022\206\001\n" + + "\021light_sleep_stats\030\003 \001(\0132f.google.devicesa" + "ndservices.health.v4.RespiratoryRateSlee" - + "pSummary.RespiratoryRateSleepSummaryStatisticsB\003\340A\001\022\205\001\n" - + "\020full_sleep_stats\030\005 \001(\0132f.google.devicesandservices.health.v4.Res" - + "piratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsB\003\340A\002\032\330\001\n" + + "pSummary.RespiratoryRateSleepSummaryStatisticsB\003\340A\001\022\204\001\n" + + "\017rem_sleep_stats\030\004 \001(\0132f.google.devicesandservices.health.v4.Resp" + + "iratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsB\003\340A\001\022\205\001\n" + + "\020full_sleep_stats\030\005 \001(\0132f.google.devicesandservice" + + "s.health.v4.RespiratoryRateSleepSummary." + + "RespiratoryRateSleepSummaryStatisticsB\003\340A\002\032\330\001\n" + "%RespiratoryRateSleepSummaryStatistics\022$\n" + "\022breaths_per_minute\030\001 \001(\001B\003\340A\002H\000\210\001\001\022$\n" + "\022standard_deviation\030\002 \001(\001B\003\340A\001H\001\210\001\001\022!\n" + "\017signal_to_noise\030\003 \001(\001B\003\340A\001H\002\210\001\001B\025\n" + "\023_breaths_per_minuteB\025\n" + "\023_standard_deviationB\022\n" - + "\020_signal_to_noise\"\266\023\n" + + "\020_signal_to_noise\"\245\024\n" + "\005Sleep\022O\n" - + "\010interval\030\003 \001(\01328.goo" - + "gle.devicesandservices.health.v4.SessionTimeIntervalB\003\340A\002\022G\n" - + "\004type\030\004 \001(\01624.google" - + ".devicesandservices.health.v4.Sleep.SleepTypeB\003\340A\001\022J\n" - + "\006stages\030\005 \003(\01325.google.devi" - + "cesandservices.health.v4.Sleep.SleepStageB\003\340A\001\022\\\n" - + "\023out_of_bed_segments\030\006 \003(\0132:.go" - + "ogle.devicesandservices.health.v4.Sleep.OutOfBedSegmentB\003\340A\001\022O\n" - + "\010metadata\030\010 \001(\01328" - + ".google.devicesandservices.health.v4.Sleep.SleepMetadataB\003\340A\001\022M\n" - + "\007summary\030\t \001(\01327" - + ".google.devicesandservices.health.v4.Sleep.SleepSummaryB\003\340A\003\0224\n" + + "\010interval\030\003" + + " \001(\01328.google.devicesandservices.health.v4.SessionTimeIntervalB\003\340A\002\022G\n" + + "\004type\030\004" + + " \001(\01624.google.devicesandservices.health.v4.Sleep.SleepTypeB\003\340A\001\022J\n" + + "\006stages\030\005 \003(" + + "\01325.google.devicesandservices.health.v4.Sleep.SleepStageB\003\340A\001\022\\\n" + + "\023out_of_bed_segments\030\006" + + " \003(\0132:.google.devicesandservices.health.v4.Sleep.OutOfBedSegmentB\003\340A\001\022O\n" + + "\010metadata\030\010" + + " \001(\01328.google.devicesandservices.health.v4.Sleep.SleepMetadataB\003\340A\001\022M\n" + + "\007summary\030\t" + + " \001(\01327.google.devicesandservices.health.v4.Sleep.SleepSummaryB\003\340A\003\0224\n" + "\013create_time\030\n" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\013" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032\240\003\n\n" + + "\013update_time\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022T\n" + + "\020short_awakenings\030\014" + + " \003(\01325.google.devicesandservices.health.v4.Sleep.SleepStageB\003\340A\003\032\240\003\n\n" + "SleepStage\0223\n\n" + "start_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\0228\n" + "\020start_utc_offset\030\004" @@ -1074,8 +1262,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010end_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\0226\n" + "\016end_utc_offset\030\006" + " \001(\0132\031.google.protobuf.DurationB\003\340A\002\022L\n" - + "\004type\030\007 \001(\01629.google.devicesandservi" - + "ces.health.v4.Sleep.SleepStageTypeB\003\340A\002\0224\n" + + "\004type\030\007 \001(\01629.g" + + "oogle.devicesandservices.health.v4.Sleep.SleepStageTypeB\003\340A\002\0224\n" + "\013create_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\t" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032\353\001\n" @@ -1085,14 +1273,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\031.google.protobuf.DurationB\003\340A\002\0221\n" + "\010end_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\0226\n" + "\016end_utc_offset\030\004" - + " \001(\0132\031.google.protobuf.DurationB\003\340A\002\032\276\003\n\r" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\002\032\327\003\n\r" + "SleepMetadata\022`\n\r" - + "stages_status\030\001 \001(\0162D.google.devi" - + "cesandservices.health.v4.Sleep.SleepMetadata.StagesStateB\003\340A\003\022\026\n" + + "stages_status\030\001 \001(\0162D.google.devicesandservices.heal" + + "th.v4.Sleep.SleepMetadata.StagesStateB\003\340A\003\022\026\n" + "\tprocessed\030\002 \001(\010B\003\340A\003\022\020\n" + "\003nap\030\005 \001(\010B\003\340A\003\022\034\n" + "\017manually_edited\030\006 \001(\010B\003\340A\003\022\030\n" - + "\013external_id\030\007 \001(\tB\003\340A\001\"\350\001\n" + + "\013external_id\030\007 \001(\tB\003\340A\001\022\027\n\n" + + "main_sleep\030\t \001(\010B\003\340A\003\"\350\001\n" + "\013StagesState\022\034\n" + "\030STAGES_STATE_UNSPECIFIED\020\000\022\025\n" + "\021REJECTED_COVERAGE\020\001\022\024\n" @@ -1110,11 +1299,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026minutes_to_fall_asleep\030\003 \001(\003B\003\340A\003H\002\210\001\001\022 \n" + "\016minutes_asleep\030\004 \001(\003B\003\340A\003H\003\210\001\001\022\037\n\r" + "minutes_awake\030\005 \001(\003B\003\340A\003H\004\210\001\001\022a\n" - + "\016stages_summary\030\006 \003(\0132D.google.de" - + "vicesandservices.health.v4.Sleep.SleepSummary.StageSummaryB\003\340A\003\032\246\001\n" + + "\016stages_summary\030\006 \003(\0132D.goo" + + "gle.devicesandservices.health.v4.Sleep.SleepSummary.StageSummaryB\003\340A\003\032\246\001\n" + "\014StageSummary\022L\n" - + "\004type\030\001 \001(\01629.google.devicesandservic" - + "es.health.v4.Sleep.SleepStageTypeB\003\340A\003\022\031\n" + + "\004type\030\001 \001(\01629.google.devicesand" + + "services.health.v4.Sleep.SleepStageTypeB\003\340A\003\022\031\n" + "\007minutes\030\002 \001(\003B\003\340A\003H\000\210\001\001\022\027\n" + "\005count\030\003 \001(\003B\003\340A\003H\001\210\001\001B\n\n" + "\010_minutesB\010\n" @@ -1137,18 +1326,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006ASLEEP\020\005\022\014\n" + "\010RESTLESS\020\006\"\177\n" + "\005Steps\022S\n" - + "\010interval\030\002 \001" - + "(\0132<.google.devicesandservices.health.v4.ObservationTimeIntervalB\003\340A\002\022\027\n" + + "\010interval\030\002" + + " \001(\0132<.google.devicesandservices.health.v4.ObservationTimeIntervalB\003\340A\002\022\027\n" + "\005count\030\004 \001(\003B\003\340A\002H\000\210\001\001B\010\n" + "\006_count\"8\n" + "\020StepsRollupValue\022\026\n" + "\tcount_sum\030\001 \001(\003H\000\210\001\001B\014\n\n" + "_count_sum\"\357\002\n" + "\017SwimLengthsData\022S\n" - + "\010interval\030\001 \001(\013" - + "2<.google.devicesandservices.health.v4.ObservationTimeIntervalB\003\340A\002\022b\n" - + "\020swim_stroke_type\030\002 \001(\0162C.google.devicesandservice" - + "s.health.v4.SwimLengthsData.SwimStrokeTypeB\003\340A\002\022\036\n" + + "\010interval\030\001" + + " \001(\0132<.google.devicesandservices.health.v4.ObservationTimeIntervalB\003\340A\002\022b\n" + + "\020swim_stroke_type\030\002 \001(\0162C.google.devicesands" + + "ervices.health.v4.SwimLengthsData.SwimStrokeTypeB\003\340A\002\022\036\n" + "\014stroke_count\030\003 \001(\003B\003\340A\002H\000\210\001\001\"r\n" + "\016SwimStrokeType\022 \n" + "\034SWIM_STROKE_TYPE_UNSPECIFIED\020\000\022\r\n" @@ -1161,26 +1350,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020stroke_count_sum\030\001 \001(\003H\000\210\001\001B\023\n" + "\021_stroke_count_sum\"\305\001\n" + "\023TimeInHeartRateZone\022S\n" - + "\010interval\030\001 \001(\0132<.google.devicesandserv" - + "ices.health.v4.ObservationTimeIntervalB\003\340A\002\022Y\n" - + "\024heart_rate_zone_type\030\002 \001(\01626.goog" - + "le.devicesandservices.health.v4.HeartRateZoneTypeB\003\340A\002\"\273\002\n" + + "\010interval\030\001 \001(\0132<.google.devicesa" + + "ndservices.health.v4.ObservationTimeIntervalB\003\340A\002\022Y\n" + + "\024heart_rate_zone_type\030\002 \001(\0162" + + "6.google.devicesandservices.health.v4.HeartRateZoneTypeB\003\340A\002\"\273\002\n" + "\036TimeInHeartRateZoneRollupValue\022~\n" - + "\030time_in_heart_rate_zones\030\001 \003(\0132\\.google.devicesandservices.health.v" - + "4.TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue\032\230\001\n" + + "\030time_in_heart_rate_zones\030\001 \003(\0132\\.google.devicesandservices.he" + + "alth.v4.TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue\032\230\001\n" + "\030TimeInHeartRateZoneValue\022O\n" - + "\017heart_rate_zone\030\001 \001(\01626.google" - + ".devicesandservices.health.v4.HeartRateZoneType\022+\n" + + "\017heart_rate_zone\030\001 \001(\01626." + + "google.devicesandservices.health.v4.HeartRateZoneType\022+\n" + "\010duration\030\002 \001(\0132\031.google.protobuf.Duration\">\n" + "\030TotalCaloriesRollupValue\022\025\n" + "\010kcal_sum\030\001 \001(\001H\000\210\001\001B\013\n" + "\t_kcal_sum\"\225\004\n" + "\006VO2Max\022T\n" - + "\013sample_time\030\001 \001(\0132:.google.de" - + "vicesandservices.health.v4.ObservationSampleTimeB\003\340A\002\022\031\n" + + "\013sample_time\030\001 \001(\0132:.goo" + + "gle.devicesandservices.health.v4.ObservationSampleTimeB\003\340A\002\022\031\n" + "\007vo2_max\030\002 \001(\001B\003\340A\002H\000\210\001\001\022^\n" - + "\022measurement_method\030\004 \001(\0162=.google.de" - + "vicesandservices.health.v4.VO2Max.MeasurementMethodB\003\340A\001\"\255\002\n" + + "\022measurement_method\030\004 \001(\0162=.goo" + + "gle.devicesandservices.health.v4.VO2Max.MeasurementMethodB\003\340A\001\"\255\002\n" + "\021MeasurementMethod\022\"\n" + "\036MEASUREMENT_METHOD_UNSPECIFIED\020\000\022\016\n\n" + "FITBIT_RUN\020\001\022\026\n" @@ -1206,18 +1395,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020weight_grams_avg\030\001 \001(\001H\000\210\001\001B\023\n" + "\021_weight_grams_avg\"\322\010\n" + "\014BloodGlucose\022T\n" - + "\013sample_time\030\001" - + " \001(\0132:.google.devicesandservices.health.v4.ObservationSampleTimeB\003\340A\002\0228\n" + + "\013sample_time\030\001 \001(\0132:.google.devicesandservi" + + "ces.health.v4.ObservationSampleTimeB\003\340A\002\0228\n" + "&blood_glucose_milligrams_per_deciliter\030\002" + " \001(\001B\003\340A\002H\000\210\001\001\022d\n" - + "\022measurement_source\030\003 \001(\016" - + "2C.google.devicesandservices.health.v4.BloodGlucose.MeasurementSourceB\003\340A\001\022R\n" - + "\tmeal_type\030\004 \001(\0162:.google.devicesandservice" - + "s.health.v4.BloodGlucose.MealTypeB\003\340A\001\022d\n" - + "\022measurement_timing\030\005 \001(\0162C.google.devi" - + "cesandservices.health.v4.BloodGlucose.MeasurementTimingB\003\340A\001\022Q\n" - + "\010specimen\030\006 \001(\0162:" - + ".google.devicesandservices.health.v4.BloodGlucose.SpecimenB\003\340A\001\022\022\n" + + "\022measurement_source\030\003 \001(\0162C.google.devicesandservices.healt" + + "h.v4.BloodGlucose.MeasurementSourceB\003\340A\001\022R\n" + + "\tmeal_type\030\004 \001(\0162:.google.devicesands" + + "ervices.health.v4.BloodGlucose.MealTypeB\003\340A\001\022d\n" + + "\022measurement_timing\030\005 \001(\0162C.googl" + + "e.devicesandservices.health.v4.BloodGlucose.MeasurementTimingB\003\340A\001\022Q\n" + + "\010specimen\030\006" + + " \001(\0162:.google.devicesandservices.health.v4.BloodGlucose.SpecimenB\003\340A\001\022\022\n" + "\005notes\030\010 \001(\tB\003\340A\001\"\213\001\n" + "\021MeasurementSource\022\"\n" + "\036MEASUREMENT_SOURCE_UNSPECIFIED\020\000\022!\n" @@ -1251,18 +1440,175 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*blood_glucose_milligrams_per_deciliter_avg\030\001 \001(\001H\000\210\001\001B-\n" + "+_blood_glucose_milligrams_per_deciliter_avg\"f\n" + "\017SedentaryPeriod\022S\n" - + "\010interval\030\001" - + " \001(\0132<.google.devicesandservices.health.v4.ObservationTimeIntervalB\003\340A\002\"M\n" + + "\010interval\030\001 \001(\0132<.google.devicesandservi" + + "ces.health.v4.ObservationTimeIntervalB\003\340A\002\"M\n" + "\032SedentaryPeriodRollupValue\022/\n" + "\014duration_sum\030\001 \001(\0132\031.google.protobuf.Duration\"\212\001\n" + "\022ActiveEnergyBurned\022S\n" - + "\010interval\030\001 \001(\0132<.g" - + "oogle.devicesandservices.health.v4.ObservationTimeIntervalB\003\340A\002\022\026\n" + + "\010interval\030\001 \001" + + "(\0132<.google.devicesandservices.health.v4.ObservationTimeIntervalB\003\340A\002\022\026\n" + "\004kcal\030\002 \001(\001B\003\340A\002H\000\210\001\001B\007\n" + "\005_kcal\"H\n" + "\035ActiveEnergyBurnedRollupValue\022\032\n" + "\010kcal_sum\030\001 \001(\001B\003\340A\003H\000\210\001\001B\013\n" - + "\t_kcal_sum*j\n" + + "\t_kcal_sum\"z\n" + + "\017MenstrualPeriod\022S\n" + + "\010interval\030\002 \001(\0132<.google.devicesandservice" + + "s.health.v4.ObservationTimeIntervalB\003\340A\002\022\022\n" + + "\005notes\030\004 \001(\tB\003\340A\001\"\264\001\n\r" + + "OvulationTest\022T\n" + + "\013sample_time\030\002 \001(\0132:.google.devicesands" + + "ervices.health.v4.ObservationSampleTimeB\003\340A\002\022M\n" + + "\006result\030\003 \001(\01628.google.devicesand" + + "services.health.v4.OvulationTestResultB\003\340A\002\"\247\n\n" + + "\010Symptoms\022T\n" + + "\013sample_time\030\001 \001(\0132:." + + "google.devicesandservices.health.v4.ObservationSampleTimeB\003\340A\002\022Q\n" + + "\010symptoms\030\002 \003(\016" + + "2:.google.devicesandservices.health.v4.Symptoms.SymptomValueB\003\340A\002\"\361\010\n" + + "\014SymptomValue\022\035\n" + + "\031SYMPTOM_VALUE_UNSPECIFIED\020\000\022\n\n" + + "\006CRAMPS\020\001\022\014\n" + + "\010HEADACHE\020\002\022\022\n" + + "\016TENDER_BREASTS\020\003\022\010\n" + + "\004ACNE\020\004\022\010\n" + + "\004SICK\020\005\022\013\n" + + "\007BLOATED\020\006\022\017\n" + + "\013HOT_FLASHES\020\007\022\007\n" + + "\003PMS\020\010\022\t\n" + + "\005COUGH\020\t\022\t\n" + + "\005FEVER\020\n" + + "\022\030\n" + + "\024DIFFICULTY_BREATHING\020\013\022\r\n" + + "\tBACK_PAIN\020\014\022\r\n" + + "\tSHAKINESS\020\r" + + "\022\n\n" + + "\006HUNGER\020\016\022\014\n" + + "\010SWEATING\020\017\022\013\n" + + "\007ANXIETY\020\020\022\n\n" + + "\006THIRST\020\021\022\026\n" + + "\022FREQUENT_URINATION\020\022\022\022\n" + + "\016BLURRED_VISION\020\023\022\t\n" + + "\005OTHER\020\024\022\022\n" + + "\016SEX_DRIVE_HIGH\020\025\022\024\n" + + "\020SEX_DRIVE_MEDIUM\020\026\022\021\n\r" + + "SEX_DRIVE_LOW\020\027\022\026\n" + + "\022HEART_PALPITATIONS\020\030\022\014\n" + + "\010FAINTING\020\031\022\016\n\n" + + "CHEST_PAIN\020\032\022\013\n" + + "\007FATIGUE\020\033\022\r\n" + + "\tCONFUSION\020\034\022\r\n" + + "\tDIZZINESS\020\035\022\022\n" + + "\016ABDOMINAL_PAIN\020\036\022\021\n\r" + + "BLADDER_LEAKS\020\037\022\021\n\r" + + "BLEEDING_GUMS\020 \022\r\n" + + "\tBRAIN_FOG\020!\022\021\n\r" + + "BURNING_MOUTH\020\"\022\020\n" + + "\014CONSTIPATION\020#\022\014\n" + + "\010CRAVINGS\020$\022\026\n" + + "\022DECREASED_APPETITE\020%\022\014\n" + + "\010DIARRHEA\020&\022\020\n" + + "\014DRAWING_PAIN\020\'\022\014\n" + + "\010DRY_EYES\020(\022\014\n" + + "\010DRY_HAIR\020)\022\014\n" + + "\010DRY_SKIN\020*\022\016\n\n" + + "EXHAUSTION\020+\022\r" + + "\n" + + "\tFEEL_GOOD\020,\022\022\n" + + "\016FOOD_AVERSIONS\020-\022\r\n" + + "\tHAIR_LOSS\020.\022\r\n" + + "\tHEARTBURN\020/\022\025\n" + + "\021HYPERPIGMENTATION\0200\022\026\n" + + "\022INCREASED_APPETITE\0201\022\031\n" + + "\025INCREASED_APPETITE_V2\0202\022\014\n" + + "\010INSOMNIA\0203\022\016\n\n" + + "JOINT_PAIN\0204\022\016\n\n" + + "LEG_CRAMPS\0205\022\032\n" + + "\026MILKY_NIPPLE_DISCHARGE\0206\022\n\n" + + "\006NAUSEA\0207\022\020\n" + + "\014NIGHT_SWEATS\0208\022\024\n" + + "\020NORMAL_DIGESTION\0209\022\020\n" + + "\014NORMAL_STOOL\020:\022\021\n\r" + + "PERINEUM_PAIN\020;\022\016\n\n" + + "SLEEPINESS\020<\022\021\n\r" + + "STRETCH_MARKS\020=\022\014\n" + + "\010SWELLING\020>\022\023\n" + + "\017VAGINAL_DRYNESS\020?\022\023\n" + + "\017VAGINAL_ITCHING\020@\022\014\n" + + "\010VOMITING\020A\"\336\010\n" + + "\005Moods\022T\n" + + "\013sample_time\030\002 \001(\0132:.g" + + "oogle.devicesandservices.health.v4.ObservationSampleTimeB\003\340A\002\022C\n" + + "\005moods\030\003 \003(\0162/.g" + + "oogle.devicesandservices.health.v4.Moods.MoodB\003\340A\002\022I\n" + + "\010valences\030\005 \003(\01622.google.de" + + "vicesandservices.health.v4.Moods.ValenceB\003\340A\001\"\236\006\n" + + "\004Mood\022\024\n" + + "\020MOOD_UNSPECIFIED\020\000\022\n\n" + + "\006AMAZED\020\001\022\n\n" + + "\006AMUSED\020\002\022\t\n" + + "\005ANGRY\020\003\022\013\n" + + "\007ANNOYED\020\004\022\013\n" + + "\007ANXIOUS\020\005\022\t\n" + + "\005HAPPY\020\006\022\013\n" + + "\007CONTENT\020\007\022\007\n" + + "\003SAD\020\010\022\013\n" + + "\007WORRIED\020\t\022\016\n\n" + + "FRUSTRATED\020\n" + + "\022\013\n" + + "\007EXCITED\020\013\022\010\n" + + "\004CALM\020\014\022\014\n" + + "\010STRESSED\020\r" + + "\022\013\n" + + "\007ASHAMED\020\016\022\t\n" + + "\005BRAVE\020\017\022\r\n" + + "\tCONFIDENT\020\020\022\020\n" + + "\014DISAPPOINTED\020\021\022\017\n" + + "\013DISCOURAGED\020\022\022\r\n" + + "\tDISGUSTED\020\023\022\013\n" + + "\007DRAINED\020\024\022\017\n" + + "\013EMBARRASSED\020\025\022\014\n" + + "\010GRATEFUL\020\026\022\n\n" + + "\006GUILTY\020\027\022\013\n" + + "\007HOPEFUL\020\030\022\014\n" + + "\010HOPELESS\020\031\022\017\n" + + "\013INDIFFERENT\020\032\022\r\n" + + "\tIRRITATED\020\033\022\013\n" + + "\007JEALOUS\020\034\022\n\n" + + "\006JOYFUL\020\035\022\n\n" + + "\006LONELY\020\036\022\017\n" + + "\013OVERWHELMED\020\037\022\016\n\n" + + "PASSIONATE\020 \022\014\n" + + "\010PEACEFUL\020!\022\t\n" + + "\005PROUD\020\"\022\014\n" + + "\010RELIEVED\020#\022\r\n" + + "\tSATISFIED\020$\022\n\n" + + "\006SCARED\020%\022\r\n" + + "\tSURPRISED\020&\022\r\n" + + "\tENERGIZED\020\'\022\014\n" + + "\010FATIGUED\020(\022\r\n" + + "\tVERY_CALM\020)\022\021\n\r" + + "V", + "ERY_STRESSED\020*\022\013\n" + + "\007NEUTRAL\020+\022\n\n" + + "\006AFRAID\020,\022\013\n" + + "\007HURTING\020-\022\t\n" + + "\005BORED\020.\022\n\n" + + "\006BITTER\020/\022\013\n" + + "\007ENVIOUS\0200\022\014\n" + + "\010CONFUSED\0201\022\013\n" + + "\007CURIOUS\0202\022\r\n" + + "\tAWESTRUCK\0203\022\014\n" + + "\010INSPIRED\0204\022\013\n" + + "\007LONGING\0205\022\020\n" + + "\014ACCOMPLISHED\0206\022\n\n" + + "\006LOVING\0207\022\021\n\r" + + "COMPASSIONATE\0208\"N\n" + + "\007Valence\022\027\n" + + "\023VALENCE_UNSPECIFIED\020\000\022\016\n\n" + + "UNPLEASANT\020\001\022\014\n" + + "\010BASELINE\020\002\022\014\n" + + "\010PLEASANT\020\003*j\n" + "\021HeartRateZoneType\022$\n" + " HEART_RATE_ZONE_TYPE_UNSPECIFIED\020\000\022\t\n" + "\005LIGHT\020\001\022\014\n" @@ -1279,8 +1625,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tBREAKFAST\020\002\022\020\n" + "\014BEFORE_LUNCH\020\003\022\t\n" + "\005LUNCH\020\004\022\021\n\r" - + "BEFORE_DINNER\020\005\022\n" - + "\n" + + "BEFORE_DINNER\020\005\022\n\n" + "\006DINNER\020\006\022\020\n" + "\014AFTER_DINNER\020\007\022\t\n" + "\005SNACK\020\010\022\013\n" @@ -1342,7 +1687,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005OUNCE\020\003\022\t\n" + "\005POUND\020\004\022\t\n" + "\005STONE\020\005\022\r\n" - + "\tMILLIGRAM\020\006\022\r\n" + + "\tMILLIGRAM\020\006\022\r" + + "\n" + "\tMICROGRAM\020\007\022\014\n" + "\010NANOGRAM\020\010*\260\001\n\n" + "VolumeUnit\022\033\n" @@ -1354,12 +1700,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005LITER\020\005\022\016\n\n" + "MILLILITER\020\006\022\021\n\r" + "PINT_IMPERIAL\020\007\022\013\n" - + "\007PINT_US\020\010B\204\002\n" - + "\'com.google.devicesandservices.health.v4B\016DataModelProtoP\001ZRgoogle" - + ".golang.org/genproto/googleapis/devicesandservices/health/apiv4main;healthpb\252\002#G" - + "oogle.DevicesAndServices.Health.V4\312\002#Goo" - + "gle\\DevicesAndServices\\Health\\V4\352\002&Googl" - + "e::DevicesAndServices::Health::V4b\006proto3" + + "\007PINT_US\020\010*\236\001\n" + + "\023OvulationTestResult\022%\n" + + "!OVULATION_TEST_RESULT_UNSPECIFIED\020\000\022\014\n" + + "\010NEGATIVE\020\001\022\035\n" + + "\031LUTEINIZING_HORMONE_SURGE\020\002\022\022\n" + + "\016ESTROGEN_SURGE\020\003\022\014\n" + + "\010POSITIVE\020\004\022\021\n\r" + + "INDETERMINATE\020\005B\200\002\n" + + "\'com.google.devicesandservices.health.v4B\016DataModelProtoP\001ZNgoogle.go" + + "lang.org/genproto/googleapis/devicesandservices/health/apiv4;healthpb\252\002#Google.D" + + "evicesAndServices.Health.V4\312\002#Google\\Dev" + + "icesAndServices\\Health\\V4\352\002&Google::DevicesAndServices::Health::V4b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -2050,6 +2402,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Summary", "CreateTime", "UpdateTime", + "ShortAwakenings", }); internal_static_google_devicesandservices_health_v4_Sleep_SleepStage_descriptor = internal_static_google_devicesandservices_health_v4_Sleep_descriptor.getNestedType(0); @@ -2079,7 +2432,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_devicesandservices_health_v4_Sleep_SleepMetadata_descriptor, new java.lang.String[] { - "StagesStatus", "Processed", "Nap", "ManuallyEdited", "ExternalId", + "StagesStatus", "Processed", "Nap", "ManuallyEdited", "ExternalId", "MainSleep", }); internal_static_google_devicesandservices_health_v4_Sleep_SleepSummary_descriptor = internal_static_google_devicesandservices_health_v4_Sleep_descriptor.getNestedType(3); @@ -2246,6 +2599,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "KcalSum", }); + internal_static_google_devicesandservices_health_v4_MenstrualPeriod_descriptor = + getDescriptor().getMessageType(66); + internal_static_google_devicesandservices_health_v4_MenstrualPeriod_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_devicesandservices_health_v4_MenstrualPeriod_descriptor, + new java.lang.String[] { + "Interval", "Notes", + }); + internal_static_google_devicesandservices_health_v4_OvulationTest_descriptor = + getDescriptor().getMessageType(67); + internal_static_google_devicesandservices_health_v4_OvulationTest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_devicesandservices_health_v4_OvulationTest_descriptor, + new java.lang.String[] { + "SampleTime", "Result", + }); + internal_static_google_devicesandservices_health_v4_Symptoms_descriptor = + getDescriptor().getMessageType(68); + internal_static_google_devicesandservices_health_v4_Symptoms_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_devicesandservices_health_v4_Symptoms_descriptor, + new java.lang.String[] { + "SampleTime", "Symptoms", + }); + internal_static_google_devicesandservices_health_v4_Moods_descriptor = + getDescriptor().getMessageType(69); + internal_static_google_devicesandservices_health_v4_Moods_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_devicesandservices_health_v4_Moods_descriptor, + new java.lang.String[] { + "SampleTime", "Moods", "Valences", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataPoint.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataPoint.java index cf071d5a2774..ceff6de37ba4 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataPoint.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataPoint.java @@ -118,6 +118,10 @@ public enum DataCase ACTIVE_ENERGY_BURNED(44), FOOD_MEASUREMENT_UNIT(45), BLOOD_GLUCOSE(46), + MENSTRUAL_PERIOD(49), + OVULATION_TEST(50), + SYMPTOMS(52), + MOODS(53), DATA_NOT_SET(0); private final int value; @@ -213,6 +217,14 @@ public static DataCase forNumber(int value) { return FOOD_MEASUREMENT_UNIT; case 46: return BLOOD_GLUCOSE; + case 49: + return MENSTRUAL_PERIOD; + case 50: + return OVULATION_TEST; + case 52: + return SYMPTOMS; + case 53: + return MOODS; case 0: return DATA_NOT_SET; default: @@ -2620,6 +2632,257 @@ public com.google.devicesandservices.health.v4.BloodGlucoseOrBuilder getBloodGlu return com.google.devicesandservices.health.v4.BloodGlucose.getDefaultInstance(); } + public static final int MENSTRUAL_PERIOD_FIELD_NUMBER = 49; + + /** + * + * + *
+   * Optional. Data for points in the `menstrual-period` interval data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.MenstrualPeriod menstrual_period = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the menstrualPeriod field is set. + */ + @java.lang.Override + public boolean hasMenstrualPeriod() { + return dataCase_ == 49; + } + + /** + * + * + *
+   * Optional. Data for points in the `menstrual-period` interval data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.MenstrualPeriod menstrual_period = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The menstrualPeriod. + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.MenstrualPeriod getMenstrualPeriod() { + if (dataCase_ == 49) { + return (com.google.devicesandservices.health.v4.MenstrualPeriod) data_; + } + return com.google.devicesandservices.health.v4.MenstrualPeriod.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Data for points in the `menstrual-period` interval data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.MenstrualPeriod menstrual_period = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.MenstrualPeriodOrBuilder + getMenstrualPeriodOrBuilder() { + if (dataCase_ == 49) { + return (com.google.devicesandservices.health.v4.MenstrualPeriod) data_; + } + return com.google.devicesandservices.health.v4.MenstrualPeriod.getDefaultInstance(); + } + + public static final int OVULATION_TEST_FIELD_NUMBER = 50; + + /** + * + * + *
+   * Optional. Data for points in the `ovulation-test` sample data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTest ovulation_test = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ovulationTest field is set. + */ + @java.lang.Override + public boolean hasOvulationTest() { + return dataCase_ == 50; + } + + /** + * + * + *
+   * Optional. Data for points in the `ovulation-test` sample data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTest ovulation_test = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ovulationTest. + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.OvulationTest getOvulationTest() { + if (dataCase_ == 50) { + return (com.google.devicesandservices.health.v4.OvulationTest) data_; + } + return com.google.devicesandservices.health.v4.OvulationTest.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Data for points in the `ovulation-test` sample data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTest ovulation_test = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.OvulationTestOrBuilder + getOvulationTestOrBuilder() { + if (dataCase_ == 50) { + return (com.google.devicesandservices.health.v4.OvulationTest) data_; + } + return com.google.devicesandservices.health.v4.OvulationTest.getDefaultInstance(); + } + + public static final int SYMPTOMS_FIELD_NUMBER = 52; + + /** + * + * + *
+   * Optional. Data for points in the `symptoms` sample data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.Symptoms symptoms = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the symptoms field is set. + */ + @java.lang.Override + public boolean hasSymptoms() { + return dataCase_ == 52; + } + + /** + * + * + *
+   * Optional. Data for points in the `symptoms` sample data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.Symptoms symptoms = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The symptoms. + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.Symptoms getSymptoms() { + if (dataCase_ == 52) { + return (com.google.devicesandservices.health.v4.Symptoms) data_; + } + return com.google.devicesandservices.health.v4.Symptoms.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Data for points in the `symptoms` sample data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.Symptoms symptoms = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.SymptomsOrBuilder getSymptomsOrBuilder() { + if (dataCase_ == 52) { + return (com.google.devicesandservices.health.v4.Symptoms) data_; + } + return com.google.devicesandservices.health.v4.Symptoms.getDefaultInstance(); + } + + public static final int MOODS_FIELD_NUMBER = 53; + + /** + * + * + *
+   * Optional. Data for points in the `moods` sample data type collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.Moods moods = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the moods field is set. + */ + @java.lang.Override + public boolean hasMoods() { + return dataCase_ == 53; + } + + /** + * + * + *
+   * Optional. Data for points in the `moods` sample data type collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.Moods moods = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The moods. + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.Moods getMoods() { + if (dataCase_ == 53) { + return (com.google.devicesandservices.health.v4.Moods) data_; + } + return com.google.devicesandservices.health.v4.Moods.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Data for points in the `moods` sample data type collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.Moods moods = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.MoodsOrBuilder getMoodsOrBuilder() { + if (dataCase_ == 53) { + return (com.google.devicesandservices.health.v4.Moods) data_; + } + return com.google.devicesandservices.health.v4.Moods.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -2644,7 +2907,7 @@ public com.google.devicesandservices.health.v4.BloodGlucoseOrBuilder getBloodGlu * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, @@ -2687,7 +2950,7 @@ public java.lang.String getName() { * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, @@ -2909,6 +3172,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataCase_ == 46) { output.writeMessage(46, (com.google.devicesandservices.health.v4.BloodGlucose) data_); } + if (dataCase_ == 49) { + output.writeMessage(49, (com.google.devicesandservices.health.v4.MenstrualPeriod) data_); + } + if (dataCase_ == 50) { + output.writeMessage(50, (com.google.devicesandservices.health.v4.OvulationTest) data_); + } + if (dataCase_ == 52) { + output.writeMessage(52, (com.google.devicesandservices.health.v4.Symptoms) data_); + } + if (dataCase_ == 53) { + output.writeMessage(53, (com.google.devicesandservices.health.v4.Moods) data_); + } getUnknownFields().writeTo(output); } @@ -3114,6 +3389,26 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 46, (com.google.devicesandservices.health.v4.BloodGlucose) data_); } + if (dataCase_ == 49) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 49, (com.google.devicesandservices.health.v4.MenstrualPeriod) data_); + } + if (dataCase_ == 50) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 50, (com.google.devicesandservices.health.v4.OvulationTest) data_); + } + if (dataCase_ == 52) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 52, (com.google.devicesandservices.health.v4.Symptoms) data_); + } + if (dataCase_ == 53) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 53, (com.google.devicesandservices.health.v4.Moods) data_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3255,6 +3550,18 @@ public boolean equals(final java.lang.Object obj) { case 46: if (!getBloodGlucose().equals(other.getBloodGlucose())) return false; break; + case 49: + if (!getMenstrualPeriod().equals(other.getMenstrualPeriod())) return false; + break; + case 50: + if (!getOvulationTest().equals(other.getOvulationTest())) return false; + break; + case 52: + if (!getSymptoms().equals(other.getSymptoms())) return false; + break; + case 53: + if (!getMoods().equals(other.getMoods())) return false; + break; case 0: default: } @@ -3428,6 +3735,22 @@ public int hashCode() { hash = (37 * hash) + BLOOD_GLUCOSE_FIELD_NUMBER; hash = (53 * hash) + getBloodGlucose().hashCode(); break; + case 49: + hash = (37 * hash) + MENSTRUAL_PERIOD_FIELD_NUMBER; + hash = (53 * hash) + getMenstrualPeriod().hashCode(); + break; + case 50: + hash = (37 * hash) + OVULATION_TEST_FIELD_NUMBER; + hash = (53 * hash) + getOvulationTest().hashCode(); + break; + case 52: + hash = (37 * hash) + SYMPTOMS_FIELD_NUMBER; + hash = (53 * hash) + getSymptoms().hashCode(); + break; + case 53: + hash = (37 * hash) + MOODS_FIELD_NUMBER; + hash = (53 * hash) + getMoods().hashCode(); + break; case 0: default: } @@ -3695,6 +4018,18 @@ public Builder clear() { if (bloodGlucoseBuilder_ != null) { bloodGlucoseBuilder_.clear(); } + if (menstrualPeriodBuilder_ != null) { + menstrualPeriodBuilder_.clear(); + } + if (ovulationTestBuilder_ != null) { + ovulationTestBuilder_.clear(); + } + if (symptomsBuilder_ != null) { + symptomsBuilder_.clear(); + } + if (moodsBuilder_ != null) { + moodsBuilder_.clear(); + } name_ = ""; dataSource_ = null; if (dataSourceBuilder_ != null) { @@ -3747,11 +4082,11 @@ private void buildPartial0(com.google.devicesandservices.health.v4.DataPoint res private void buildPartial1(com.google.devicesandservices.health.v4.DataPoint result) { int from_bitField1_ = bitField1_; - if (((from_bitField1_ & 0x00000040) != 0)) { + if (((from_bitField1_ & 0x00000400) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; - if (((from_bitField1_ & 0x00000080) != 0)) { + if (((from_bitField1_ & 0x00000800) != 0)) { result.dataSource_ = dataSourceBuilder_ == null ? dataSource_ : dataSourceBuilder_.build(); to_bitField0_ |= 0x00000001; } @@ -3875,6 +4210,18 @@ private void buildPartialOneofs(com.google.devicesandservices.health.v4.DataPoin if (dataCase_ == 46 && bloodGlucoseBuilder_ != null) { result.data_ = bloodGlucoseBuilder_.build(); } + if (dataCase_ == 49 && menstrualPeriodBuilder_ != null) { + result.data_ = menstrualPeriodBuilder_.build(); + } + if (dataCase_ == 50 && ovulationTestBuilder_ != null) { + result.data_ = ovulationTestBuilder_.build(); + } + if (dataCase_ == 52 && symptomsBuilder_ != null) { + result.data_ = symptomsBuilder_.build(); + } + if (dataCase_ == 53 && moodsBuilder_ != null) { + result.data_ = moodsBuilder_.build(); + } } @java.lang.Override @@ -3892,7 +4239,7 @@ public Builder mergeFrom(com.google.devicesandservices.health.v4.DataPoint other return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000400; onChanged(); } if (other.hasDataSource()) { @@ -4089,6 +4436,26 @@ public Builder mergeFrom(com.google.devicesandservices.health.v4.DataPoint other mergeBloodGlucose(other.getBloodGlucose()); break; } + case MENSTRUAL_PERIOD: + { + mergeMenstrualPeriod(other.getMenstrualPeriod()); + break; + } + case OVULATION_TEST: + { + mergeOvulationTest(other.getOvulationTest()); + break; + } + case SYMPTOMS: + { + mergeSymptoms(other.getSymptoms()); + break; + } + case MOODS: + { + mergeMoods(other.getMoods()); + break; + } case DATA_NOT_SET: { break; @@ -4123,14 +4490,14 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000400; break; } // case 10 case 26: { input.readMessage( internalGetDataSourceFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000800; break; } // case 26 case 34: @@ -4395,6 +4762,33 @@ public Builder mergeFrom( dataCase_ = 46; break; } // case 370 + case 394: + { + input.readMessage( + internalGetMenstrualPeriodFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 49; + break; + } // case 394 + case 402: + { + input.readMessage( + internalGetOvulationTestFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 50; + break; + } // case 402 + case 418: + { + input.readMessage( + internalGetSymptomsFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 52; + break; + } // case 418 + case 426: + { + input.readMessage(internalGetMoodsFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 53; + break; + } // case 426 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -13793,6 +14187,983 @@ public com.google.devicesandservices.health.v4.BloodGlucose.Builder getBloodGluc return bloodGlucoseBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.MenstrualPeriod, + com.google.devicesandservices.health.v4.MenstrualPeriod.Builder, + com.google.devicesandservices.health.v4.MenstrualPeriodOrBuilder> + menstrualPeriodBuilder_; + + /** + * + * + *
+     * Optional. Data for points in the `menstrual-period` interval data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.MenstrualPeriod menstrual_period = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the menstrualPeriod field is set. + */ + @java.lang.Override + public boolean hasMenstrualPeriod() { + return dataCase_ == 49; + } + + /** + * + * + *
+     * Optional. Data for points in the `menstrual-period` interval data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.MenstrualPeriod menstrual_period = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The menstrualPeriod. + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.MenstrualPeriod getMenstrualPeriod() { + if (menstrualPeriodBuilder_ == null) { + if (dataCase_ == 49) { + return (com.google.devicesandservices.health.v4.MenstrualPeriod) data_; + } + return com.google.devicesandservices.health.v4.MenstrualPeriod.getDefaultInstance(); + } else { + if (dataCase_ == 49) { + return menstrualPeriodBuilder_.getMessage(); + } + return com.google.devicesandservices.health.v4.MenstrualPeriod.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Data for points in the `menstrual-period` interval data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.MenstrualPeriod menstrual_period = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMenstrualPeriod( + com.google.devicesandservices.health.v4.MenstrualPeriod value) { + if (menstrualPeriodBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + menstrualPeriodBuilder_.setMessage(value); + } + dataCase_ = 49; + return this; + } + + /** + * + * + *
+     * Optional. Data for points in the `menstrual-period` interval data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.MenstrualPeriod menstrual_period = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMenstrualPeriod( + com.google.devicesandservices.health.v4.MenstrualPeriod.Builder builderForValue) { + if (menstrualPeriodBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + menstrualPeriodBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 49; + return this; + } + + /** + * + * + *
+     * Optional. Data for points in the `menstrual-period` interval data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.MenstrualPeriod menstrual_period = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMenstrualPeriod( + com.google.devicesandservices.health.v4.MenstrualPeriod value) { + if (menstrualPeriodBuilder_ == null) { + if (dataCase_ == 49 + && data_ + != com.google.devicesandservices.health.v4.MenstrualPeriod.getDefaultInstance()) { + data_ = + com.google.devicesandservices.health.v4.MenstrualPeriod.newBuilder( + (com.google.devicesandservices.health.v4.MenstrualPeriod) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 49) { + menstrualPeriodBuilder_.mergeFrom(value); + } else { + menstrualPeriodBuilder_.setMessage(value); + } + } + dataCase_ = 49; + return this; + } + + /** + * + * + *
+     * Optional. Data for points in the `menstrual-period` interval data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.MenstrualPeriod menstrual_period = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMenstrualPeriod() { + if (menstrualPeriodBuilder_ == null) { + if (dataCase_ == 49) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 49) { + dataCase_ = 0; + data_ = null; + } + menstrualPeriodBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Data for points in the `menstrual-period` interval data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.MenstrualPeriod menstrual_period = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.devicesandservices.health.v4.MenstrualPeriod.Builder + getMenstrualPeriodBuilder() { + return internalGetMenstrualPeriodFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Data for points in the `menstrual-period` interval data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.MenstrualPeriod menstrual_period = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.MenstrualPeriodOrBuilder + getMenstrualPeriodOrBuilder() { + if ((dataCase_ == 49) && (menstrualPeriodBuilder_ != null)) { + return menstrualPeriodBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 49) { + return (com.google.devicesandservices.health.v4.MenstrualPeriod) data_; + } + return com.google.devicesandservices.health.v4.MenstrualPeriod.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Data for points in the `menstrual-period` interval data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.MenstrualPeriod menstrual_period = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.MenstrualPeriod, + com.google.devicesandservices.health.v4.MenstrualPeriod.Builder, + com.google.devicesandservices.health.v4.MenstrualPeriodOrBuilder> + internalGetMenstrualPeriodFieldBuilder() { + if (menstrualPeriodBuilder_ == null) { + if (!(dataCase_ == 49)) { + data_ = com.google.devicesandservices.health.v4.MenstrualPeriod.getDefaultInstance(); + } + menstrualPeriodBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.MenstrualPeriod, + com.google.devicesandservices.health.v4.MenstrualPeriod.Builder, + com.google.devicesandservices.health.v4.MenstrualPeriodOrBuilder>( + (com.google.devicesandservices.health.v4.MenstrualPeriod) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 49; + onChanged(); + return menstrualPeriodBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.OvulationTest, + com.google.devicesandservices.health.v4.OvulationTest.Builder, + com.google.devicesandservices.health.v4.OvulationTestOrBuilder> + ovulationTestBuilder_; + + /** + * + * + *
+     * Optional. Data for points in the `ovulation-test` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTest ovulation_test = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ovulationTest field is set. + */ + @java.lang.Override + public boolean hasOvulationTest() { + return dataCase_ == 50; + } + + /** + * + * + *
+     * Optional. Data for points in the `ovulation-test` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTest ovulation_test = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ovulationTest. + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.OvulationTest getOvulationTest() { + if (ovulationTestBuilder_ == null) { + if (dataCase_ == 50) { + return (com.google.devicesandservices.health.v4.OvulationTest) data_; + } + return com.google.devicesandservices.health.v4.OvulationTest.getDefaultInstance(); + } else { + if (dataCase_ == 50) { + return ovulationTestBuilder_.getMessage(); + } + return com.google.devicesandservices.health.v4.OvulationTest.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Data for points in the `ovulation-test` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTest ovulation_test = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOvulationTest(com.google.devicesandservices.health.v4.OvulationTest value) { + if (ovulationTestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + ovulationTestBuilder_.setMessage(value); + } + dataCase_ = 50; + return this; + } + + /** + * + * + *
+     * Optional. Data for points in the `ovulation-test` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTest ovulation_test = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOvulationTest( + com.google.devicesandservices.health.v4.OvulationTest.Builder builderForValue) { + if (ovulationTestBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + ovulationTestBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 50; + return this; + } + + /** + * + * + *
+     * Optional. Data for points in the `ovulation-test` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTest ovulation_test = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOvulationTest(com.google.devicesandservices.health.v4.OvulationTest value) { + if (ovulationTestBuilder_ == null) { + if (dataCase_ == 50 + && data_ + != com.google.devicesandservices.health.v4.OvulationTest.getDefaultInstance()) { + data_ = + com.google.devicesandservices.health.v4.OvulationTest.newBuilder( + (com.google.devicesandservices.health.v4.OvulationTest) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 50) { + ovulationTestBuilder_.mergeFrom(value); + } else { + ovulationTestBuilder_.setMessage(value); + } + } + dataCase_ = 50; + return this; + } + + /** + * + * + *
+     * Optional. Data for points in the `ovulation-test` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTest ovulation_test = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOvulationTest() { + if (ovulationTestBuilder_ == null) { + if (dataCase_ == 50) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 50) { + dataCase_ = 0; + data_ = null; + } + ovulationTestBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Data for points in the `ovulation-test` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTest ovulation_test = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.devicesandservices.health.v4.OvulationTest.Builder getOvulationTestBuilder() { + return internalGetOvulationTestFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Data for points in the `ovulation-test` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTest ovulation_test = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.OvulationTestOrBuilder + getOvulationTestOrBuilder() { + if ((dataCase_ == 50) && (ovulationTestBuilder_ != null)) { + return ovulationTestBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 50) { + return (com.google.devicesandservices.health.v4.OvulationTest) data_; + } + return com.google.devicesandservices.health.v4.OvulationTest.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Data for points in the `ovulation-test` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTest ovulation_test = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.OvulationTest, + com.google.devicesandservices.health.v4.OvulationTest.Builder, + com.google.devicesandservices.health.v4.OvulationTestOrBuilder> + internalGetOvulationTestFieldBuilder() { + if (ovulationTestBuilder_ == null) { + if (!(dataCase_ == 50)) { + data_ = com.google.devicesandservices.health.v4.OvulationTest.getDefaultInstance(); + } + ovulationTestBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.OvulationTest, + com.google.devicesandservices.health.v4.OvulationTest.Builder, + com.google.devicesandservices.health.v4.OvulationTestOrBuilder>( + (com.google.devicesandservices.health.v4.OvulationTest) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 50; + onChanged(); + return ovulationTestBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.Symptoms, + com.google.devicesandservices.health.v4.Symptoms.Builder, + com.google.devicesandservices.health.v4.SymptomsOrBuilder> + symptomsBuilder_; + + /** + * + * + *
+     * Optional. Data for points in the `symptoms` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Symptoms symptoms = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the symptoms field is set. + */ + @java.lang.Override + public boolean hasSymptoms() { + return dataCase_ == 52; + } + + /** + * + * + *
+     * Optional. Data for points in the `symptoms` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Symptoms symptoms = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The symptoms. + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.Symptoms getSymptoms() { + if (symptomsBuilder_ == null) { + if (dataCase_ == 52) { + return (com.google.devicesandservices.health.v4.Symptoms) data_; + } + return com.google.devicesandservices.health.v4.Symptoms.getDefaultInstance(); + } else { + if (dataCase_ == 52) { + return symptomsBuilder_.getMessage(); + } + return com.google.devicesandservices.health.v4.Symptoms.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Data for points in the `symptoms` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Symptoms symptoms = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSymptoms(com.google.devicesandservices.health.v4.Symptoms value) { + if (symptomsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + symptomsBuilder_.setMessage(value); + } + dataCase_ = 52; + return this; + } + + /** + * + * + *
+     * Optional. Data for points in the `symptoms` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Symptoms symptoms = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSymptoms( + com.google.devicesandservices.health.v4.Symptoms.Builder builderForValue) { + if (symptomsBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + symptomsBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 52; + return this; + } + + /** + * + * + *
+     * Optional. Data for points in the `symptoms` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Symptoms symptoms = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSymptoms(com.google.devicesandservices.health.v4.Symptoms value) { + if (symptomsBuilder_ == null) { + if (dataCase_ == 52 + && data_ != com.google.devicesandservices.health.v4.Symptoms.getDefaultInstance()) { + data_ = + com.google.devicesandservices.health.v4.Symptoms.newBuilder( + (com.google.devicesandservices.health.v4.Symptoms) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 52) { + symptomsBuilder_.mergeFrom(value); + } else { + symptomsBuilder_.setMessage(value); + } + } + dataCase_ = 52; + return this; + } + + /** + * + * + *
+     * Optional. Data for points in the `symptoms` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Symptoms symptoms = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSymptoms() { + if (symptomsBuilder_ == null) { + if (dataCase_ == 52) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 52) { + dataCase_ = 0; + data_ = null; + } + symptomsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Data for points in the `symptoms` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Symptoms symptoms = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.devicesandservices.health.v4.Symptoms.Builder getSymptomsBuilder() { + return internalGetSymptomsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Data for points in the `symptoms` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Symptoms symptoms = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.SymptomsOrBuilder getSymptomsOrBuilder() { + if ((dataCase_ == 52) && (symptomsBuilder_ != null)) { + return symptomsBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 52) { + return (com.google.devicesandservices.health.v4.Symptoms) data_; + } + return com.google.devicesandservices.health.v4.Symptoms.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Data for points in the `symptoms` sample data type
+     * collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Symptoms symptoms = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.Symptoms, + com.google.devicesandservices.health.v4.Symptoms.Builder, + com.google.devicesandservices.health.v4.SymptomsOrBuilder> + internalGetSymptomsFieldBuilder() { + if (symptomsBuilder_ == null) { + if (!(dataCase_ == 52)) { + data_ = com.google.devicesandservices.health.v4.Symptoms.getDefaultInstance(); + } + symptomsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.Symptoms, + com.google.devicesandservices.health.v4.Symptoms.Builder, + com.google.devicesandservices.health.v4.SymptomsOrBuilder>( + (com.google.devicesandservices.health.v4.Symptoms) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 52; + onChanged(); + return symptomsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.Moods, + com.google.devicesandservices.health.v4.Moods.Builder, + com.google.devicesandservices.health.v4.MoodsOrBuilder> + moodsBuilder_; + + /** + * + * + *
+     * Optional. Data for points in the `moods` sample data type collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Moods moods = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the moods field is set. + */ + @java.lang.Override + public boolean hasMoods() { + return dataCase_ == 53; + } + + /** + * + * + *
+     * Optional. Data for points in the `moods` sample data type collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Moods moods = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The moods. + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.Moods getMoods() { + if (moodsBuilder_ == null) { + if (dataCase_ == 53) { + return (com.google.devicesandservices.health.v4.Moods) data_; + } + return com.google.devicesandservices.health.v4.Moods.getDefaultInstance(); + } else { + if (dataCase_ == 53) { + return moodsBuilder_.getMessage(); + } + return com.google.devicesandservices.health.v4.Moods.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Data for points in the `moods` sample data type collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Moods moods = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMoods(com.google.devicesandservices.health.v4.Moods value) { + if (moodsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + moodsBuilder_.setMessage(value); + } + dataCase_ = 53; + return this; + } + + /** + * + * + *
+     * Optional. Data for points in the `moods` sample data type collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Moods moods = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMoods(com.google.devicesandservices.health.v4.Moods.Builder builderForValue) { + if (moodsBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + moodsBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 53; + return this; + } + + /** + * + * + *
+     * Optional. Data for points in the `moods` sample data type collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Moods moods = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMoods(com.google.devicesandservices.health.v4.Moods value) { + if (moodsBuilder_ == null) { + if (dataCase_ == 53 + && data_ != com.google.devicesandservices.health.v4.Moods.getDefaultInstance()) { + data_ = + com.google.devicesandservices.health.v4.Moods.newBuilder( + (com.google.devicesandservices.health.v4.Moods) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 53) { + moodsBuilder_.mergeFrom(value); + } else { + moodsBuilder_.setMessage(value); + } + } + dataCase_ = 53; + return this; + } + + /** + * + * + *
+     * Optional. Data for points in the `moods` sample data type collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Moods moods = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMoods() { + if (moodsBuilder_ == null) { + if (dataCase_ == 53) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 53) { + dataCase_ = 0; + data_ = null; + } + moodsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Data for points in the `moods` sample data type collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Moods moods = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.devicesandservices.health.v4.Moods.Builder getMoodsBuilder() { + return internalGetMoodsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Data for points in the `moods` sample data type collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Moods moods = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.MoodsOrBuilder getMoodsOrBuilder() { + if ((dataCase_ == 53) && (moodsBuilder_ != null)) { + return moodsBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 53) { + return (com.google.devicesandservices.health.v4.Moods) data_; + } + return com.google.devicesandservices.health.v4.Moods.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Data for points in the `moods` sample data type collection.
+     * 
+ * + * + * .google.devicesandservices.health.v4.Moods moods = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.Moods, + com.google.devicesandservices.health.v4.Moods.Builder, + com.google.devicesandservices.health.v4.MoodsOrBuilder> + internalGetMoodsFieldBuilder() { + if (moodsBuilder_ == null) { + if (!(dataCase_ == 53)) { + data_ = com.google.devicesandservices.health.v4.Moods.getDefaultInstance(); + } + moodsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.Moods, + com.google.devicesandservices.health.v4.Moods.Builder, + com.google.devicesandservices.health.v4.MoodsOrBuilder>( + (com.google.devicesandservices.health.v4.Moods) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 53; + onChanged(); + return moodsBuilder_; + } + private java.lang.Object name_ = ""; /** @@ -13814,7 +15185,7 @@ public com.google.devicesandservices.health.v4.BloodGlucose.Builder getBloodGluc * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, @@ -13856,7 +15227,7 @@ public java.lang.String getName() { * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, @@ -13898,7 +15269,7 @@ public com.google.protobuf.ByteString getNameBytes() { * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, @@ -13915,7 +15286,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000400; onChanged(); return this; } @@ -13939,7 +15310,7 @@ public Builder setName(java.lang.String value) { * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, @@ -13952,7 +15323,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField1_ = (bitField1_ & ~0x00000040); + bitField1_ = (bitField1_ & ~0x00000400); onChanged(); return this; } @@ -13976,7 +15347,7 @@ public Builder clearName() { * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, @@ -13994,7 +15365,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField1_ |= 0x00000040; + bitField1_ |= 0x00000400; onChanged(); return this; } @@ -14020,7 +15391,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the dataSource field is set. */ public boolean hasDataSource() { - return ((bitField1_ & 0x00000080) != 0); + return ((bitField1_ & 0x00000800) != 0); } /** @@ -14066,7 +15437,7 @@ public Builder setDataSource(com.google.devicesandservices.health.v4.DataSource } else { dataSourceBuilder_.setMessage(value); } - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000800; onChanged(); return this; } @@ -14089,7 +15460,7 @@ public Builder setDataSource( } else { dataSourceBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000800; onChanged(); return this; } @@ -14107,7 +15478,7 @@ public Builder setDataSource( */ public Builder mergeDataSource(com.google.devicesandservices.health.v4.DataSource value) { if (dataSourceBuilder_ == null) { - if (((bitField1_ & 0x00000080) != 0) + if (((bitField1_ & 0x00000800) != 0) && dataSource_ != null && dataSource_ != com.google.devicesandservices.health.v4.DataSource.getDefaultInstance()) { @@ -14119,7 +15490,7 @@ public Builder mergeDataSource(com.google.devicesandservices.health.v4.DataSourc dataSourceBuilder_.mergeFrom(value); } if (dataSource_ != null) { - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000800; onChanged(); } return this; @@ -14137,7 +15508,7 @@ public Builder mergeDataSource(com.google.devicesandservices.health.v4.DataSourc *
*/ public Builder clearDataSource() { - bitField1_ = (bitField1_ & ~0x00000080); + bitField1_ = (bitField1_ & ~0x00000800); dataSource_ = null; if (dataSourceBuilder_ != null) { dataSourceBuilder_.dispose(); @@ -14159,7 +15530,7 @@ public Builder clearDataSource() { *
*/ public com.google.devicesandservices.health.v4.DataSource.Builder getDataSourceBuilder() { - bitField1_ |= 0x00000080; + bitField1_ |= 0x00000800; onChanged(); return internalGetDataSourceFieldBuilder().getBuilder(); } diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataPointOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataPointOrBuilder.java index 369b20e9292e..b43748ee19af 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataPointOrBuilder.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataPointOrBuilder.java @@ -1763,6 +1763,187 @@ public interface DataPointOrBuilder */ com.google.devicesandservices.health.v4.BloodGlucoseOrBuilder getBloodGlucoseOrBuilder(); + /** + * + * + *
+   * Optional. Data for points in the `menstrual-period` interval data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.MenstrualPeriod menstrual_period = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the menstrualPeriod field is set. + */ + boolean hasMenstrualPeriod(); + + /** + * + * + *
+   * Optional. Data for points in the `menstrual-period` interval data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.MenstrualPeriod menstrual_period = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The menstrualPeriod. + */ + com.google.devicesandservices.health.v4.MenstrualPeriod getMenstrualPeriod(); + + /** + * + * + *
+   * Optional. Data for points in the `menstrual-period` interval data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.MenstrualPeriod menstrual_period = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.devicesandservices.health.v4.MenstrualPeriodOrBuilder getMenstrualPeriodOrBuilder(); + + /** + * + * + *
+   * Optional. Data for points in the `ovulation-test` sample data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTest ovulation_test = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ovulationTest field is set. + */ + boolean hasOvulationTest(); + + /** + * + * + *
+   * Optional. Data for points in the `ovulation-test` sample data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTest ovulation_test = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ovulationTest. + */ + com.google.devicesandservices.health.v4.OvulationTest getOvulationTest(); + + /** + * + * + *
+   * Optional. Data for points in the `ovulation-test` sample data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTest ovulation_test = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.devicesandservices.health.v4.OvulationTestOrBuilder getOvulationTestOrBuilder(); + + /** + * + * + *
+   * Optional. Data for points in the `symptoms` sample data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.Symptoms symptoms = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the symptoms field is set. + */ + boolean hasSymptoms(); + + /** + * + * + *
+   * Optional. Data for points in the `symptoms` sample data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.Symptoms symptoms = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The symptoms. + */ + com.google.devicesandservices.health.v4.Symptoms getSymptoms(); + + /** + * + * + *
+   * Optional. Data for points in the `symptoms` sample data type
+   * collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.Symptoms symptoms = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.devicesandservices.health.v4.SymptomsOrBuilder getSymptomsOrBuilder(); + + /** + * + * + *
+   * Optional. Data for points in the `moods` sample data type collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.Moods moods = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the moods field is set. + */ + boolean hasMoods(); + + /** + * + * + *
+   * Optional. Data for points in the `moods` sample data type collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.Moods moods = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The moods. + */ + com.google.devicesandservices.health.v4.Moods getMoods(); + + /** + * + * + *
+   * Optional. Data for points in the `moods` sample data type collection.
+   * 
+ * + * + * .google.devicesandservices.health.v4.Moods moods = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.devicesandservices.health.v4.MoodsOrBuilder getMoodsOrBuilder(); + /** * * @@ -1782,7 +1963,7 @@ public interface DataPointOrBuilder * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, @@ -1814,7 +1995,7 @@ public interface DataPointOrBuilder * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataPointsProto.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataPointsProto.java index 4ca2d520ee89..50e69bab850e 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataPointsProto.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataPointsProto.java @@ -155,7 +155,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ata_source.proto\032#google/longrunning/ope" + "rations.proto\032\036google/protobuf/duration." + "proto\032\037google/protobuf/timestamp.proto\032\027" - + "google/rpc/status.proto\032\032google/type/interval.proto\"\257\033\n" + + "google/rpc/status.proto\032\032google/type/interval.proto\"\343\035\n" + "\tDataPoint\022@\n" + "\005steps\030\004 \001(\013" + "2*.google.devicesandservices.health.v4.StepsB\003\340A\001H\000\022B\n" @@ -233,179 +233,187 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025food_measurement_unit\030- \001(\01328.google.de" + "vicesandservices.health.v4.FoodMeasurementUnitB\003\340A\001H\000\022O\n\r" + "blood_glucose\030. \001(\01321.g" - + "oogle.devicesandservices.health.v4.BloodGlucoseB\003\340A\001H\000\022\021\n" + + "oogle.devicesandservices.health.v4.BloodGlucoseB\003\340A\001H\000\022U\n" + + "\020menstrual_period\0301 \001(\013" + + "24.google.devicesandservices.health.v4.MenstrualPeriodB\003\340A\001H\000\022Q\n" + + "\016ovulation_test\0302" + + " \001(\01322.google.devicesandservices.health.v4.OvulationTestB\003\340A\001H\000\022F\n" + + "\010symptoms\0304 \001" + + "(\0132-.google.devicesandservices.health.v4.SymptomsB\003\340A\001H\000\022@\n" + + "\005moods\0305 \001(\0132*.google" + + ".devicesandservices.health.v4.MoodsB\003\340A\001H\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022I\n" - + "\013data_source\030\003" - + " \001(\0132/.google.devicesandservices.health.v4.DataSourceB\003\340A\001:w\352At\n" - + "\037health.googleapis.com/DataPoint\022:users/{user}" - + "/dataTypes/{data_type}/dataPoints/{data_point}*\n" + + "\013data_source\030\003 \001" + + "(\0132/.google.devicesandservices.health.v4.DataSourceB\003\340A\001:w\352At\n" + + "\037health.googleapis" + + ".com/DataPoint\022:users/{user}/dataTypes/{data_type}/dataPoints/{data_point}*\n" + "dataPoints2\tdataPointB\006\n" + "\004data\"\354\025\n" + "\023ReconciledDataPoint\022;\n" + "\005steps\030\004 \001(\0132*.google.devicesandservices.health.v4.StepsH\000\022=\n" + "\006floors\030\005" + " \001(\0132+.google.devicesandservices.health.v4.FloorsH\000\022D\n\n" - + "heart_rate\030\006" - + " \001(\0132..google.devicesandservices.health.v4.HeartRateH\000\022;\n" + + "heart_rate\030\006 \001(\0132..goog" + + "le.devicesandservices.health.v4.HeartRateH\000\022;\n" + "\005sleep\030\010 \001(\0132*.google.devicesandservices.health.v4.SleepH\000\022^\n" - + "\030daily_resting_heart_rate\030\t \001(\0132:.google." - + "devicesandservices.health.v4.DailyRestingHeartRateH\000\022f\n" + + "\030daily_resting_heart_rate\030\t \001(\0132:.google.devicesandse" + + "rvices.health.v4.DailyRestingHeartRateH\000\022f\n" + "\034daily_heart_rate_variability\030\n" + " \001(\0132>.google.devicesandservices.health.v4.DailyHeartRateVariabilityH\000\022A\n" - + "\010exercise\030\013" - + " \001(\0132-.google.devicesandservices.health.v4.ExerciseH\000\022=\n" + + "\010exercise\030\013 \001" + + "(\0132-.google.devicesandservices.health.v4.ExerciseH\000\022=\n" + "\006weight\030\014 \001(\0132+.google.devicesandservices.health.v4.WeightH\000\022A\n" + "\010altitude\030\r" + " \001(\0132-.google.devicesandservices.health.v4.AltitudeH\000\022A\n" - + "\010distance\030\016" - + " \001(\0132-.google.devicesandservices.health.v4.DistanceH\000\022@\n" - + "\010body_fat\030\017 \001(\0132," - + ".google.devicesandservices.health.v4.BodyFatH\000\022U\n" - + "\023active_zone_minutes\030\021 \001(\01326.go" - + "ogle.devicesandservices.health.v4.ActiveZoneMinutesH\000\022[\n" - + "\026heart_rate_variability\030\023" - + " \001(\01329.google.devicesandservices.health.v4.HeartRateVariabilityH\000\022t\n" - + "#daily_sleep_temperature_derivations\030\024 \001(\0132E.google" - + ".devicesandservices.health.v4.DailySleepTemperatureDerivationsH\000\022P\n" - + "\020sedentary_period\030\025" - + " \001(\01324.google.devicesandservices.health.v4.SedentaryPeriodH\000\022E\n" - + "\013run_vo2_max\030\026" - + " \001(\0132..google.devicesandservices.health.v4.RunVO2MaxH\000\022R\n" - + "\021oxygen_saturation\030\030" - + " \001(\01325.google.devicesandservices.health.v4.OxygenSaturationH\000\022]\n" - + "\027daily_oxygen_saturation\030\031" - + " \001(\0132:.google.devicesandservices.health.v4.DailyOxygenSaturationH\000\022L\n" + + "\010distance\030\016 \001(\0132" + + "-.google.devicesandservices.health.v4.DistanceH\000\022@\n" + + "\010body_fat\030\017" + + " \001(\0132,.google.devicesandservices.health.v4.BodyFatH\000\022U\n" + + "\023active_zone_minutes\030\021 \001(\01326.google.devices" + + "andservices.health.v4.ActiveZoneMinutesH\000\022[\n" + + "\026heart_rate_variability\030\023 \001(\01329.goog" + + "le.devicesandservices.health.v4.HeartRateVariabilityH\000\022t\n" + + "#daily_sleep_temperature_derivations\030\024 \001(\0132E.google.devicesands" + + "ervices.health.v4.DailySleepTemperatureDerivationsH\000\022P\n" + + "\020sedentary_period\030\025 \001(\01324" + + ".google.devicesandservices.health.v4.SedentaryPeriodH\000\022E\n" + + "\013run_vo2_max\030\026 \001(\0132..go" + + "ogle.devicesandservices.health.v4.RunVO2MaxH\000\022R\n" + + "\021oxygen_saturation\030\030 \001(\01325.googl" + + "e.devicesandservices.health.v4.OxygenSaturationH\000\022]\n" + + "\027daily_oxygen_saturation\030\031 \001" + + "(\0132:.google.devicesandservices.health.v4.DailyOxygenSaturationH\000\022L\n" + "\016activity_level\030\032" + " \001(\01322.google.devicesandservices.health.v4.ActivityLevelH\000\022>\n" - + "\007vo2_max\030\033" - + " \001(\0132+.google.devicesandservices.health.v4.VO2MaxH\000\022I\n\r" - + "daily_vo2_max\030\034 \001(" - + "\01320.google.devicesandservices.health.v4.DailyVO2MaxH\000\022J\n\r" - + "nutrition_log\030\035 \001(\01321.g" - + "oogle.devicesandservices.health.v4.NutritionLogH\000\022Z\n" - + "\026daily_heart_rate_zones\030 \001(" - + "\01328.google.devicesandservices.health.v4.DailyHeartRateZonesH\000\022J\n\r" - + "hydration_log\030!" - + " \001(\01321.google.devicesandservices.health.v4.HydrationLogH\000\022[\n" - + "\027time_in_heart_rate_zone\030#" - + " \001(\01328.google.devicesandservices.health.v4.TimeInHeartRateZoneH\000\022L\n" - + "\016active_minutes\030$" - + " \001(\01322.google.devicesandservices.health.v4.ActiveMinutesH\000\022j\n" - + "\036respiratory_rate_sleep_summary\030% \001(\0132@.google.de" - + "vicesandservices.health.v4.RespiratoryRateSleepSummaryH\000\022[\n" - + "\026daily_respiratory_rate\030&" - + " \001(\01329.google.devicesandservices.health.v4.DailyRespiratoryRateH\000\022Q\n" + + "\007vo2_max\030\033 \001(\0132" + + "+.google.devicesandservices.health.v4.VO2MaxH\000\022I\n\r" + + "daily_vo2_max\030\034 \001(\01320.google.d" + + "evicesandservices.health.v4.DailyVO2MaxH\000\022J\n\r" + + "nutrition_log\030\035" + + " \001(\01321.google.devicesandservices.health.v4.NutritionLogH\000\022Z\n" + + "\026daily_heart_rate_zones\030 \001(\01328.google.d" + + "evicesandservices.health.v4.DailyHeartRateZonesH\000\022J\n\r" + + "hydration_log\030! \001(\01321.googl" + + "e.devicesandservices.health.v4.HydrationLogH\000\022[\n" + + "\027time_in_heart_rate_zone\030# \001(\01328" + + ".google.devicesandservices.health.v4.TimeInHeartRateZoneH\000\022L\n" + + "\016active_minutes\030$ \001" + + "(\01322.google.devicesandservices.health.v4.ActiveMinutesH\000\022j\n" + + "\036respiratory_rate_sleep_summary\030% \001(\0132@.google.devicesandserv" + + "ices.health.v4.RespiratoryRateSleepSummaryH\000\022[\n" + + "\026daily_respiratory_rate\030& \001(\01329.g" + + "oogle.devicesandservices.health.v4.DailyRespiratoryRateH\000\022Q\n" + "\021swim_lengths_data\030\'" + " \001(\01324.google.devicesandservices.health.v4.SwimLengthsDataH\000\022=\n" + "\006height\030( \001(\0132+.google.devicesandservices.health.v4.HeightH\000\022U\n" - + "\023basal_energy_burned\030)" - + " \001(\01326.google.devicesandservices.health.v4.BasalEnergyBurnedH\000\022Y\n" - + "\025core_body_temperature\030*" - + " \001(\01328.google.devicesandservices.health.v4.CoreBodyTemperatureH\000\022W\n" - + "\024active_energy_burned\030, \001(\01327.google.devices" - + "andservices.health.v4.ActiveEnergyBurnedH\000\022J\n\r" - + "blood_glucose\030. \001(\01321.google.devic" - + "esandservices.health.v4.BloodGlucoseH\000\022\034\n" + + "\023basal_energy_burned\030) \001(\01326.googl" + + "e.devicesandservices.health.v4.BasalEnergyBurnedH\000\022Y\n" + + "\025core_body_temperature\030* \001(" + + "\01328.google.devicesandservices.health.v4.CoreBodyTemperatureH\000\022W\n" + + "\024active_energy_burned\030," + + " \001(\01327.google.devicesandservices.health.v4.ActiveEnergyBurnedH\000\022J\n\r" + + "blood_glucose\030." + + " \001(\01321.google.devicesandservices.health.v4.BloodGlucoseH\000\022\034\n" + "\017data_point_name\030\001 \001(\tB\003\340A\010B\006\n" + "\004data\"\257\017\n" + "\017RollupDataPoint\022F\n" - + "\005steps\030\005 \001(\01325.google" - + ".devicesandservices.health.v4.StepsRollupValueH\000\022H\n" - + "\006floors\030\006 \001(\01326.google.device" - + "sandservices.health.v4.FloorsRollupValueH\000\022O\n\n" - + "heart_rate\030\007 \001(\01329.google.devicesa" - + "ndservices.health.v4.HeartRateRollupValueH\000\022H\n" + + "\005steps\030\005" + + " \001(\01325.google.devicesandservices.health.v4.StepsRollupValueH\000\022H\n" + + "\006floors\030\006" + + " \001(\01326.google.devicesandservices.health.v4.FloorsRollupValueH\000\022O\n\n" + + "heart_rate\030\007" + + " \001(\01329.google.devicesandservices.health.v4.HeartRateRollupValueH\000\022H\n" + "\006weight\030\010" + " \001(\01326.google.devicesandservices.health.v4.WeightRollupValueH\000\022L\n" - + "\010altitude\030\t" - + " \001(\01328.google.devicesandservices.health.v4.AltitudeRollupValueH\000\022L\n" + + "\010altitude\030\t " + + "\001(\01328.google.devicesandservices.health.v4.AltitudeRollupValueH\000\022L\n" + "\010distance\030\n" + " \001(\01328.google.devicesandservices.health.v4.DistanceRollupValueH\000\022K\n" - + "\010body_fat\030\013" - + " \001(\01327.google.devicesandservices.health.v4.BodyFatRollupValueH\000\022W\n" - + "\016total_calories\030\014 \001(\0132=.google.devicesandservic" - + "es.health.v4.TotalCaloriesRollupValueH\000\022`\n" + + "\010body_fat\030\013 \001(\0132" + + "7.google.devicesandservices.health.v4.BodyFatRollupValueH\000\022W\n" + + "\016total_calories\030\014 \001" + + "(\0132=.google.devicesandservices.health.v4.TotalCaloriesRollupValueH\000\022`\n" + "\023active_zone_minutes\030\r" - + " \001(\0132A.google.de" - + "vicesandservices.health.v4.ActiveZoneMinutesRollupValueH\000\022[\n" - + "\020sedentary_period\030\017 " - + "\001(\0132?.google.devicesandservices.health.v4.SedentaryPeriodRollupValueH\000\022P\n" - + "\013run_vo2_max\030\020" - + " \001(\01329.google.devicesandservices.health.v4.RunVO2MaxRollupValueH\000\022n\n" - + "\033calories_in_heart_rate_zone\030\021 \001(\0132G.google.d" - + "evicesandservices.health.v4.CaloriesInHeartRateZoneRollupValueH\000\022W\n" - + "\016activity_level\030\022" - + " \001(\0132=.google.devicesandservices.health.v4.ActivityLevelRollupValueH\000\022U\n\r" - + "nutrition_log\030\023 \001(\0132<.google.devicesandserv" - + "ices.health.v4.NutritionLogRollupValueH\000\022U\n\r" - + "hydration_log\030\024 \001(\0132<.google.devices" - + "andservices.health.v4.HydrationLogRollupValueH\000\022f\n" - + "\027time_in_heart_rate_zone\030\025 \001(\013" - + "2C.google.devicesandservices.health.v4.TimeInHeartRateZoneRollupValueH\000\022W\n" - + "\016active_minutes\030\026 \001(\0132=.google.devicesandservi" - + "ces.health.v4.ActiveMinutesRollupValueH\000\022\\\n" - + "\021swim_lengths_data\030\027 \001(\0132?.google.dev" - + "icesandservices.health.v4.SwimLengthsDataRollupValueH\000\022d\n" - + "\025core_body_temperature\030\030" - + " \001(\0132C.google.devicesandservices.health.v4.CoreBodyTemperatureRollupValueH\000\022b\n" - + "\024active_energy_burned\030\031 \001(\0132B.google.devi" - + "cesandservices.health.v4.ActiveEnergyBurnedRollupValueH\000\022U\n\r" - + "blood_glucose\030\032 \001(\0132" - + "<.google.devicesandservices.health.v4.BloodGlucoseRollupValueH\000\022.\n\n" + + " \001(\0132A.google.devicesandserv" + + "ices.health.v4.ActiveZoneMinutesRollupValueH\000\022[\n" + + "\020sedentary_period\030\017 \001(\0132?.google" + + ".devicesandservices.health.v4.SedentaryPeriodRollupValueH\000\022P\n" + + "\013run_vo2_max\030\020 \001(\0132" + + "9.google.devicesandservices.health.v4.RunVO2MaxRollupValueH\000\022n\n" + + "\033calories_in_heart_rate_zone\030\021 \001(\0132G.google.devicesandser" + + "vices.health.v4.CaloriesInHeartRateZoneRollupValueH\000\022W\n" + + "\016activity_level\030\022 \001(\0132=.g" + + "oogle.devicesandservices.health.v4.ActivityLevelRollupValueH\000\022U\n\r" + + "nutrition_log\030\023" + + " \001(\0132<.google.devicesandservices.health.v4.NutritionLogRollupValueH\000\022U\n\r" + + "hydration_log\030\024" + + " \001(\0132<.google.devicesandservices.health.v4.HydrationLogRollupValueH\000\022f\n" + + "\027time_in_heart_rate_zone\030\025 \001(\0132C.google.de" + + "vicesandservices.health.v4.TimeInHeartRateZoneRollupValueH\000\022W\n" + + "\016active_minutes\030\026 " + + "\001(\0132=.google.devicesandservices.health.v4.ActiveMinutesRollupValueH\000\022\\\n" + + "\021swim_lengths_data\030\027 \001(\0132?.google.devicesandservi" + + "ces.health.v4.SwimLengthsDataRollupValueH\000\022d\n" + + "\025core_body_temperature\030\030 \001(\0132C.goog" + + "le.devicesandservices.health.v4.CoreBodyTemperatureRollupValueH\000\022b\n" + + "\024active_energy_burned\030\031 \001(\0132B.google.devicesandservic" + + "es.health.v4.ActiveEnergyBurnedRollupValueH\000\022U\n\r" + + "blood_glucose\030\032 \001(\0132<.google.dev" + + "icesandservices.health.v4.BloodGlucoseRollupValueH\000\022.\n\n" + "start_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\007\n" + "\005value\"\361\021\n" + "\024DailyRollupDataPoint\022F\n" - + "\005steps\030\005" - + " \001(\01325.google.devicesandservices.health.v4.StepsRollupValueH\000\022H\n" - + "\006floors\030\006 \001(\0132" - + "6.google.devicesandservices.health.v4.FloorsRollupValueH\000\022O\n\n" - + "heart_rate\030\007 \001(\01329." - + "google.devicesandservices.health.v4.HeartRateRollupValueH\000\022z\n" - + "!resting_heart_rate_personal_range\030\010 \001(\0132M.google.devicesan" - + "dservices.health.v4.RestingHeartRatePersonalRangeRollupValueH\000\022\202\001\n" - + "%heart_rate_variability_personal_range\030\t \001(\0132Q.google." - + "devicesandservices.health.v4.HeartRateVariabilityPersonalRangeRollupValueH\000\022H\n" + + "\005steps\030\005 \001(\01325.goo" + + "gle.devicesandservices.health.v4.StepsRollupValueH\000\022H\n" + + "\006floors\030\006 \001(\01326.google.dev" + + "icesandservices.health.v4.FloorsRollupValueH\000\022O\n\n" + + "heart_rate\030\007 \001(\01329.google.devic" + + "esandservices.health.v4.HeartRateRollupValueH\000\022z\n" + + "!resting_heart_rate_personal_range\030\010 \001(\0132M.google.devicesandservices.he" + + "alth.v4.RestingHeartRatePersonalRangeRollupValueH\000\022\202\001\n" + + "%heart_rate_variability_personal_range\030\t \001(\0132Q.google.devicesandse" + + "rvices.health.v4.HeartRateVariabilityPersonalRangeRollupValueH\000\022H\n" + "\006weight\030\n" + " \001(\01326.google.devicesandservices.health.v4.WeightRollupValueH\000\022L\n" - + "\010altitude\030\013" - + " \001(\01328.google.devicesandservices.health.v4.AltitudeRollupValueH\000\022L\n" - + "\010distance\030\014" - + " \001(\01328.google.devicesandservices.health.v4.DistanceRollupValueH\000\022K\n" + + "\010altitude\030\013 \001(\01328.go" + + "ogle.devicesandservices.health.v4.AltitudeRollupValueH\000\022L\n" + + "\010distance\030\014 \001(\01328.goog" + + "le.devicesandservices.health.v4.DistanceRollupValueH\000\022K\n" + "\010body_fat\030\r" + " \001(\01327.google.devicesandservices.health.v4.BodyFatRollupValueH\000\022W\n" - + "\016total_calories\030\016" - + " \001(\0132=.google.devicesandservices.health.v4.TotalCaloriesRollupValueH\000\022`\n" - + "\023active_zone_minutes\030\017 \001(\0132A.google.devicesand" - + "services.health.v4.ActiveZoneMinutesRollupValueH\000\022[\n" - + "\020sedentary_period\030\021 \001(\0132?.go" - + "ogle.devicesandservices.health.v4.SedentaryPeriodRollupValueH\000\022P\n" - + "\013run_vo2_max\030\022 " - + "\001(\01329.google.devicesandservices.health.v4.RunVO2MaxRollupValueH\000\022n\n" - + "\033calories_in_heart_rate_zone\030\023 \001(\0132G.google.devicesan" - + "dservices.health.v4.CaloriesInHeartRateZoneRollupValueH\000\022W\n" - + "\016activity_level\030\024 \001(\013" - + "2=.google.devicesandservices.health.v4.ActivityLevelRollupValueH\000\022U\n\r" - + "nutrition_log\030\025" - + " \001(\0132<.google.devicesandservices.health.v4.NutritionLogRollupValueH\000\022U\n\r" - + "hydration_log\030\026 \001(\0132<.google.devicesandservi" - + "ces.health.v4.HydrationLogRollupValueH\000\022f\n" - + "\027time_in_heart_rate_zone\030\027 \001(\0132C.googl" - + "e.devicesandservices.health.v4.TimeInHeartRateZoneRollupValueH\000\022W\n" - + "\016active_minutes\030\030" - + " \001(\0132=.google.devicesandservices.health.v4.ActiveMinutesRollupValueH\000\022\\\n" - + "\021swim_lengths_data\030\031 \001(\0132?.google.devicesands" - + "ervices.health.v4.SwimLengthsDataRollupValueH\000\022d\n" - + "\025core_body_temperature\030\032 \001(\0132C." - + "google.devicesandservices.health.v4.CoreBodyTemperatureRollupValueH\000\022b\n" - + "\024active_energy_burned\030\033 \001(\0132B.google.devicesandse" - + "rvices.health.v4.ActiveEnergyBurnedRollupValueH\000\022U\n\r" - + "blood_glucose\030\034 \001(\0132<.google" - + ".devicesandservices.health.v4.BloodGlucoseRollupValueH\000\022L\n" - + "\020civil_start_time\030\001 \001(" - + "\01322.google.devicesandservices.health.v4.CivilDateTime\022J\n" - + "\016civil_end_time\030\002 \001(\01322." - + "google.devicesandservices.health.v4.CivilDateTimeB\007\n" + + "\016total_calories\030\016 \001(\0132=.goo" + + "gle.devicesandservices.health.v4.TotalCaloriesRollupValueH\000\022`\n" + + "\023active_zone_minutes\030\017" + + " \001(\0132A.google.devicesandservices.health.v4.ActiveZoneMinutesRollupValueH\000\022[\n" + + "\020sedentary_period\030\021 \001(\0132?.google.devices" + + "andservices.health.v4.SedentaryPeriodRollupValueH\000\022P\n" + + "\013run_vo2_max\030\022 \001(\01329.google" + + ".devicesandservices.health.v4.RunVO2MaxRollupValueH\000\022n\n" + + "\033calories_in_heart_rate_zone\030\023 \001(\0132G.google.devicesandservices.he" + + "alth.v4.CaloriesInHeartRateZoneRollupValueH\000\022W\n" + + "\016activity_level\030\024 \001(\0132=.google.de" + + "vicesandservices.health.v4.ActivityLevelRollupValueH\000\022U\n\r" + + "nutrition_log\030\025 \001(\0132<.g" + + "oogle.devicesandservices.health.v4.NutritionLogRollupValueH\000\022U\n\r" + + "hydration_log\030\026 " + + "\001(\0132<.google.devicesandservices.health.v4.HydrationLogRollupValueH\000\022f\n" + + "\027time_in_heart_rate_zone\030\027 \001(\0132C.google.devicesand" + + "services.health.v4.TimeInHeartRateZoneRollupValueH\000\022W\n" + + "\016active_minutes\030\030 \001(\0132=.go" + + "ogle.devicesandservices.health.v4.ActiveMinutesRollupValueH\000\022\\\n" + + "\021swim_lengths_data\030\031" + + " \001(\0132?.google.devicesandservices.health.v4.SwimLengthsDataRollupValueH\000\022d\n" + + "\025core_body_temperature\030\032 \001(\0132C.google.devic" + + "esandservices.health.v4.CoreBodyTemperatureRollupValueH\000\022b\n" + + "\024active_energy_burned\030\033" + + " \001(\0132B.google.devicesandservices.health.v4.ActiveEnergyBurnedRollupValueH\000\022U\n\r" + + "blood_glucose\030\034 \001(\0132<.google.devicesands" + + "ervices.health.v4.BloodGlucoseRollupValueH\000\022L\n" + + "\020civil_start_time\030\001 \001(\01322.google.d" + + "evicesandservices.health.v4.CivilDateTime\022J\n" + + "\016civil_end_time\030\002" + + " \001(\01322.google.devicesandservices.health.v4.CivilDateTimeB\007\n" + "\005value\"L\n" + "\023GetDataPointRequest\0225\n" + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" @@ -417,18 +425,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\"v\n" + "\026ListDataPointsResponse\022C\n" - + "\013data_points\030\001" - + " \003(\0132..google.devicesandservices.health.v4.DataPoint\022\027\n" + + "\013data_points\030\001 " + + "\003(\0132..google.devicesandservices.health.v4.DataPoint\022\027\n" + "\017next_page_token\030\002 \001(\t\"\232\001\n" + "\026CreateDataPointRequest\0227\n" - + "\006parent\030\001 \001(" - + "\tB\'\340A\002\372A!\022\037health.googleapis.com/DataPoint\022G\n\n" - + "data_point\030\002 \001(\0132..googl" - + "e.devicesandservices.health.v4.DataPointB\003\340A\002\"\"\n" + + "\006parent\030\001 \001(\tB" + + "\'\340A\002\372A!\022\037health.googleapis.com/DataPoint\022G\n\n" + + "data_point\030\002" + + " \001(\0132..google.devicesandservices.health.v4.DataPointB\003\340A\002\"\"\n" + " CreateDataPointOperationMetadata\"a\n" + "\026UpdateDataPointRequest\022G\n\n" - + "data_point\030\001" - + " \001(\0132..google.devicesandservices.health.v4.DataPointB\003\340A\002\"\"\n" + + "data_point\030\001 \001(\0132..go" + + "ogle.devicesandservices.health.v4.DataPointB\003\340A\002\"\"\n" + " UpdateDataPointOperationMetadata\"\216\001\n" + "\034BatchDeleteDataPointsRequest\0226\n" + "\006parent\030\001 \001(\tB&\340A\001\372A \n" @@ -436,11 +444,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005names\030\002 \003(\tB\'\340A\002\372A!\n" + "\037health.googleapis.com/DataPoint\"d\n" + "\035BatchDeleteDataPointsResponse\022C\n" - + "\013data_points\030\001" - + " \003(\0132..google.devicesandservices.health.v4.DataPoint\"\355\001\n" + + "\013data_points\030\001 " + + "\003(\0132..google.devicesandservices.health.v4.DataPoint\"\355\001\n" + "&BatchDeleteDataPointsOperationMetadata\022x\n" - + "\017failed_requests\030\001 \003(\0132_.google.devicesandservices." - + "health.v4.BatchDeleteDataPointsOperationMetadata.FailedRequestsEntry\032I\n" + + "\017failed_requests\030\001 \003(\0132_.google.devicesandservices.health.v4.Ba" + + "tchDeleteDataPointsOperationMetadata.FailedRequestsEntry\032I\n" + "\023FailedRequestsEntry\022\013\n" + "\003key\030\001 \001(\005\022!\n" + "\005value\030\002 \001(\0132\022.google.rpc.Status:\0028\001\"\230\001\n" @@ -451,8 +459,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\003\340A\001\022\037\n" + "\022data_source_family\030\005 \001(\tB\003\340A\001\"\205\001\n" + "\033ReconcileDataPointsResponse\022M\n" - + "\013data_points\030\001 \003(\01328.google" - + ".devicesandservices.health.v4.ReconciledDataPoint\022\027\n" + + "\013data_points\030\001" + + " \003(\01328.google.devicesandservices.health.v4.ReconciledDataPoint\022\027\n" + "\017next_page_token\030\002 \001(\t\"\203\002\n" + "\027RollUpDataPointsRequest\0226\n" + "\006parent\030\001 \001(\tB&\340A\002\372A \n" @@ -464,8 +472,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\005 \001(\tB\003\340A\001\022\037\n" + "\022data_source_family\030\007 \001(\tB\003\340A\001\"\205\001\n" + "\030RollUpDataPointsResponse\022P\n" - + "\022rollup_data_points\030\001 \003(\01324.goog" - + "le.devicesandservices.health.v4.RollupDataPoint\022\027\n" + + "\022rollup_data_points\030\001" + + " \003(\01324.google.devicesandservices.health.v4.RollupDataPoint\022\027\n" + "\017next_page_token\030\002 \001(\t\"\223\002\n" + "\034DailyRollUpDataPointsRequest\0226\n" + "\006parent\030\001 \001(\tB&\340A\002\372A \n" @@ -477,8 +485,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\005 \001(\tB\003\340A\001\022\037\n" + "\022data_source_family\030\007 \001(\tB\003\340A\001\"v\n" + "\035DailyRollUpDataPointsResponse\022U\n" - + "\022rollup_data_points\030\001" - + " \003(\01329.google.devicesandservices.health.v4.DailyRollupDataPoint\"{\n" + + "\022rollup_data_points\030\001 \003(\0132" + + "9.google.devicesandservices.health.v4.DailyRollupDataPoint\"{\n" + "\010DataType\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010:\\\352AY\n" + "\036health.googleapis.com/DataType\022\"users/{user}/dataTypes/{data_type}*" @@ -488,59 +496,78 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037health.googleapis.com/DataPoint\022\031\n" + "\014partial_data\030\002 \001(\010B\003\340A\001\"-\n" + "\031ExportExerciseTcxResponse\022\020\n" - + "\010tcx_data\030\002 \001(\t2\274\022\n" + + "\010tcx_data\030\002 \001(\t2\204\030\n" + "\021DataPointsService\022\264\001\n" - + "\014GetDataPoint\0228.google.devicesandservices.health.v4.GetDataPoi" - + "ntRequest\032..google.devicesandservices.he" - + "alth.v4.DataPoint\":\332A\004name\202\323\344\223\002-\022+/v4/{n" - + "ame=users/*/dataTypes/*/dataPoints/*}\022\307\001\n" - + "\016ListDataPoints\022:.google.devicesandserv" - + "ices.health.v4.ListDataPointsRequest\032;.google.devicesandservices.health.v4.ListD" - + "ataPointsResponse\"<\332A\006parent\202\323\344\223\002-\022+/v4/" - + "{parent=users/*/dataTypes/*}/dataPoints\022\363\001\n" - + "\017CreateDataPoint\022;.google.devicesands" - + "ervices.health.v4.CreateDataPointRequest\032\035.google.longrunning.Operation\"\203\001\312A-\n" - + "\tDataPoint\022 CreateDataPointOperationMetada" - + "ta\332A\021parent,data_point\202\323\344\223\0029\"+/v4/{parent=users/*/dataTypes/*}/dataPoints:\n" + + "\014GetDataPoint\0228.google.devicesandservices.health.v4.GetDataPointRequest\032.." + + "google.devicesandservices.health.v4.Data" + + "Point\":\332A\004name\202\323\344\223\002-\022+/v4/{name=users/*/dataTypes/*/dataPoints/*}\022\307\001\n" + + "\016ListDataPoints\022:.google.devicesandservices.health." + + "v4.ListDataPointsRequest\032;.google.devicesandservices.health.v4.ListDataPointsRes" + + "ponse\"<\332A\006parent\202\323\344\223\002-\022+/v4/{parent=users/*/dataTypes/*}/dataPoints\022\363\001\n" + + "\017CreateDataPoint\022;.google.devicesandservices.heal" + + "th.v4.CreateDataPointRequest\032\035.google.longrunning.Operation\"\203\001\312A-\n" + + "\tDataPoint\022 CreateDataPointOperationMetadata\332A\021parent," + + "data_point\202\323\344\223\0029\"+/v4/{parent=users/*/dataTypes/*}/dataPoints:\n" + "data_point\022\367\001\n" - + "\017UpdateDataPoint\022;.google.devicesandservices.health.v4.UpdateDataPointR" - + "equest\032\035.google.longrunning.Operation\"\207\001\312A-\n" + + "\017UpdateDataPoint\022;.google.devicesandservice" + + "s.health.v4.UpdateDataPointRequest\032\035.google.longrunning.Operation\"\207\001\312A-\n" + "\tDataPoint\022 UpdateDataPointOperationMetadata\332A\n" - + "data_point\202\323\344\223\002D26/v4/{data_p" - + "oint.name=users/*/dataTypes/*/dataPoints/*}:\n" + + "data_point\202\323\344\223\002D26/v4/{data_point.name=users/*/dataTypes/*/dataPoints/*}:\n" + "data_point\022\210\002\n" - + "\025BatchDeleteDataPoints\022A.google.devicesandservices.health.v4." - + "BatchDeleteDataPointsRequest\032\035.google.longrunning.Operation\"\214\001\312AG\n" - + "\035BatchDeleteDataPointsResponse\022&BatchDeleteDataPointsO" - + "perationMetadata\202\323\344\223\002<\"7/v4/{parent=user" - + "s/*/dataTypes/*}/dataPoints:batchDelete:\001*\022\327\001\n" - + "\023ReconcileDataPoints\022?.google.devicesandservices.health.v4.ReconcileDataPo" - + "intsRequest\032@.google.devicesandservices." - + "health.v4.ReconcileDataPointsResponse\"=\202" - + "\323\344\223\0027\0225/v4/{parent=users/*/dataTypes/*}/dataPoints:reconcile\022\316\001\n" - + "\020RollUpDataPoints\022<.google.devicesandservices.health.v4." - + "RollUpDataPointsRequest\032=.google.devicesandservices.health.v4.RollUpDataPointsRe" - + "sponse\"=\202\323\344\223\0027\"2/v4/{parent=users/*/dataTypes/*}/dataPoints:rollUp:\001*\022\342\001\n" - + "\025DailyRollUpDataPoints\022A.google.devicesandservi" - + "ces.health.v4.DailyRollUpDataPointsRequest\032B.google.devicesandservices.health.v4" - + ".DailyRollUpDataPointsResponse\"B\202\323\344\223\002<\"7" - + "/v4/{parent=users/*/dataTypes/*}/dataPoints:dailyRollUp:\001*\022\340\001\n" - + "\021ExportExerciseTcx\022=.google.devicesandservices.health.v4.E" - + "xportExerciseTcxRequest\032>.google.devicesandservices.health.v4.ExportExerciseTcxR" - + "esponse\"L\332A\004name\202\323\344\223\002?\022=/v4/{name=users/" - + "*/dataTypes/*/dataPoints/*}:exportExerci" - + "seTcx\032\267\002\312A\025health.googleapis.com\322A\233\002http" - + "s://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly,https://w" - + "ww.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly,htt" - + "ps://www.googleapis.com/auth/googlehealth.location.readonly,https://www.googleap" - + "is.com/auth/googlehealth.sleep.readonlyB", - "\205\002\n\'com.google.devicesandservices.health" - + ".v4B\017DataPointsProtoP\001ZRgoogle.golang.or" - + "g/genproto/googleapis/devicesandservices" - + "/health/apiv4main;healthpb\252\002#Google.Devi" - + "cesAndServices.Health.V4\312\002#Google\\Device" - + "sAndServices\\Health\\V4\352\002&Google::Devices" - + "AndServices::Health::V4b\006proto3" + + "\025BatchDeleteDataPoints\022A.google.devicesandservices.health.v4.BatchDeleteD" + + "ataPointsRequest\032\035.google.longrunning.Operation\"\214\001\312AG\n" + + "\035BatchDeleteDataPointsResponse\022&BatchDeleteDataPointsOperationMeta" + + "data\202\323\344\223\002<\"7/v4/{parent=users/*/dataTypes/*}/dataPoints:batchDelete:\001*\022\327\001\n" + + "\023ReconcileDataPoints\022?.google.devicesandservic" + + "es.health.v4.ReconcileDataPointsRequest\032@.google.devicesandservices.health.v4.Re" + + "concileDataPointsResponse\"=\202\323\344\223\0027\0225/v4/{" + + "parent=users/*/dataTypes/*}/dataPoints:reconcile\022\316\001\n" + + "\020RollUpDataPoints\022<.google.devicesandservices.health.v4.RollUpDataPo" + + "intsRequest\032=.google.devicesandservices." + + "health.v4.RollUpDataPointsResponse\"=\202\323\344\223" + + "\0027\"2/v4/{parent=users/*/dataTypes/*}/dataPoints:rollUp:\001*\022\342\001\n" + + "\025DailyRollUpDataPoints\022A.google.devicesandservices.health.v" + + "4.DailyRollUpDataPointsRequest\032B.google.devicesandservices.health.v4.DailyRollUp" + + "DataPointsResponse\"B\202\323\344\223\002<\"7/v4/{parent=" + + "users/*/dataTypes/*}/dataPoints:dailyRollUp:\001*\022\340\001\n" + + "\021ExportExerciseTcx\022=.google.devicesandservices.health.v4.ExportExercis" + + "eTcxRequest\032>.google.devicesandservices." + + "health.v4.ExportExerciseTcxResponse\"L\332A\004" + + "name\202\323\344\223\002?\022=/v4/{name=users/*/dataTypes/" + + "*/dataPoints/*}:exportExerciseTcx\032\377\007\312A\025h", + "ealth.googleapis.com\322A\343\007https://www.goog" + + "leapis.com/auth/googlehealth.activity_an" + + "d_fitness.readonly,https://www.googleapi" + + "s.com/auth/googlehealth.activity_and_fit" + + "ness.writeonly,https://www.googleapis.co" + + "m/auth/googlehealth.health_metrics_and_m" + + "easurements.readonly,https://www.googlea" + + "pis.com/auth/googlehealth.health_metrics" + + "_and_measurements.writeonly,https://www." + + "googleapis.com/auth/googlehealth.locatio" + + "n.readonly,https://www.googleapis.com/au" + + "th/googlehealth.logged_symptoms.readonly" + + ",https://www.googleapis.com/auth/googleh" + + "ealth.logged_symptoms.writeonly,https://" + + "www.googleapis.com/auth/googlehealth.min" + + "dfulness.readonly,https://www.googleapis" + + ".com/auth/googlehealth.mindfulness.write" + + "only,https://www.googleapis.com/auth/goo" + + "glehealth.nutrition.writeonly,https://ww" + + "w.googleapis.com/auth/googlehealth.repro" + + "ductive_health.readonly,https://www.goog" + + "leapis.com/auth/googlehealth.reproductiv" + + "e_health.writeonly,https://www.googleapi" + + "s.com/auth/googlehealth.sleep.readonly,h" + + "ttps://www.googleapis.com/auth/googlehea" + + "lth.sleep.writeonlyB\201\002\n\'com.google.devic" + + "esandservices.health.v4B\017DataPointsProto" + + "P\001ZNgoogle.golang.org/genproto/googleapi" + + "s/devicesandservices/health/apiv4;health" + + "pb\252\002#Google.DevicesAndServices.Health.V4" + + "\312\002#Google\\DevicesAndServices\\Health\\V4\352\002" + + "&Google::DevicesAndServices::Health::V4b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -603,6 +630,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ActiveEnergyBurned", "FoodMeasurementUnit", "BloodGlucose", + "MenstrualPeriod", + "OvulationTest", + "Symptoms", + "Moods", "Name", "DataSource", "Data", diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataSourceProto.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataSourceProto.java index ecd91800eecc..c66788a4e08e 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataSourceProto.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataSourceProto.java @@ -109,12 +109,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016FITBIT_WEB_API\020\005\022\010\n" + "\004NEST\020\006\022\022\n" + "\016GOOGLE_WEB_API\020\007\022\036\n" - + "\032GOOGLE_PARTNER_INTEGRATION\020\010B\205\002\n" + + "\032GOOGLE_PARTNER_INTEGRATION\020\010B\201\002\n" + "\'com.google.devicesandservices.health.v4B\017Da" - + "taSourceProtoP\001ZRgoogle.golang.org/genproto/googleapis/devicesandservices/health" - + "/apiv4main;healthpb\252\002#Google.DevicesAndS" - + "ervices.Health.V4\312\002#Google\\DevicesAndSer" - + "vices\\Health\\V4\352\002&Google::DevicesAndServices::Health::V4b\006proto3" + + "taSourceProtoP\001ZNgoogle.golang.org/genproto/googleapis/devicesandservices/health" + + "/apiv4;healthpb\252\002#Google.DevicesAndServi" + + "ces.Health.V4\312\002#Google\\DevicesAndService" + + "s\\Health\\V4\352\002&Google::DevicesAndServices::Health::V4b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataSubscriptionServiceProto.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataSubscriptionServiceProto.java index 1a5049969098..372b34cf4720 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataSubscriptionServiceProto.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/DataSubscriptionServiceProto.java @@ -269,12 +269,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "iptionRequest\032\026.google.protobuf.Empty\"B\332" + "A\004name\202\323\344\223\0025*3/v4/{name=projects/*/subsc" + "ribers/*/subscriptions/*}\032I\312A\025health.goo" - + "gleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\222\002\n" + + "gleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\216\002\n" + "\'com.google.devicesandservices.health.v4B\034DataSubscripti" - + "onServiceProtoP\001ZRgoogle.golang.org/genproto/googleapis/devicesandservices/healt" - + "h/apiv4main;healthpb\252\002#Google.DevicesAnd" - + "Services.Health.V4\312\002#Google\\DevicesAndSe" - + "rvices\\Health\\V4\352\002&Google::DevicesAndServices::Health::V4b\006proto3" + + "onServiceProtoP\001ZNgoogle.golang.org/genproto/googleapis/devicesandservices/healt" + + "h/apiv4;healthpb\252\002#Google.DevicesAndServ" + + "ices.Health.V4\312\002#Google\\DevicesAndServic" + + "es\\Health\\V4\352\002&Google::DevicesAndServices::Health::V4b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/EnergyQuantity.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/EnergyQuantity.java index 6591fce32dbd..dd842547d84b 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/EnergyQuantity.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/EnergyQuantity.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Value representing the energy in kilocalories.
+   * Required. The energy value in kilocalories.
    * 
* * optional double kcal = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -94,7 +94,7 @@ public boolean hasKcal() { * * *
-   * Required. Value representing the energy in kilocalories.
+   * Required. The energy value in kilocalories.
    * 
* * optional double kcal = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -499,7 +499,7 @@ public Builder mergeFrom( * * *
-     * Required. Value representing the energy in kilocalories.
+     * Required. The energy value in kilocalories.
      * 
* * optional double kcal = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -515,7 +515,7 @@ public boolean hasKcal() { * * *
-     * Required. Value representing the energy in kilocalories.
+     * Required. The energy value in kilocalories.
      * 
* * optional double kcal = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -531,7 +531,7 @@ public double getKcal() { * * *
-     * Required. Value representing the energy in kilocalories.
+     * Required. The energy value in kilocalories.
      * 
* * optional double kcal = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -551,7 +551,7 @@ public Builder setKcal(double value) { * * *
-     * Required. Value representing the energy in kilocalories.
+     * Required. The energy value in kilocalories.
      * 
* * optional double kcal = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/EnergyQuantityOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/EnergyQuantityOrBuilder.java index aed4f616f001..ac7bb3d02c9e 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/EnergyQuantityOrBuilder.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/EnergyQuantityOrBuilder.java @@ -30,7 +30,7 @@ public interface EnergyQuantityOrBuilder * * *
-   * Required. Value representing the energy in kilocalories.
+   * Required. The energy value in kilocalories.
    * 
* * optional double kcal = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -43,7 +43,7 @@ public interface EnergyQuantityOrBuilder * * *
-   * Required. Value representing the energy in kilocalories.
+   * Required. The energy value in kilocalories.
    * 
* * optional double kcal = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Exercise.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Exercise.java index d770c49228c6..14cb39930ca6 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Exercise.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Exercise.java @@ -80,6 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * The type of activity performed during an exercise.
+   * May receive new values in the future.
    * 
* * Protobuf enum {@code google.devicesandservices.health.v4.Exercise.ExerciseType} @@ -95,6 +96,3050 @@ public enum ExerciseType implements com.google.protobuf.ProtocolMessageEnum { * EXERCISE_TYPE_UNSPECIFIED = 0; */ EXERCISE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Aerobic workout type.
+     * 
+ * + * AEROBIC_WORKOUT = 13; + */ + AEROBIC_WORKOUT(13), + /** + * + * + *
+     * Archery type.
+     * 
+ * + * ARCHERY = 47; + */ + ARCHERY(47), + /** + * + * + *
+     * Assault bike type.
+     * 
+ * + * ASSAULT_BIKE = 164; + */ + ASSAULT_BIKE(164), + /** + * + * + *
+     * Backpacking type.
+     * 
+ * + * BACKPACKING = 181; + */ + BACKPACKING(181), + /** + * + * + *
+     * Badminton type.
+     * 
+ * + * BADMINTON = 48; + */ + BADMINTON(48), + /** + * + * + *
+     * Ballet type.
+     * 
+ * + * BALLET = 103; + */ + BALLET(103), + /** + * + * + *
+     * Ballroom dance type.
+     * 
+ * + * BALLROOM_DANCE = 156; + */ + BALLROOM_DANCE(156), + /** + * + * + *
+     * Barre class type.
+     * 
+ * + * BARRE_CLASS = 49; + */ + BARRE_CLASS(49), + /** + * + * + *
+     * Baseball type.
+     * 
+ * + * BASEBALL = 50; + */ + BASEBALL(50), + /** + * + * + *
+     * Basketball type.
+     * 
+ * + * BASKETBALL = 51; + */ + BASKETBALL(51), + /** + * + * + *
+     * Biking type.
+     * 
+ * + * BIKING = 3; + */ + BIKING(3), + /** + * + * + *
+     * Billiards type.
+     * 
+ * + * BILLIARDS = 180; + */ + BILLIARDS(180), + /** + * + * + *
+     * Body weight type.
+     * 
+ * + * BODY_WEIGHT = 149; + */ + BODY_WEIGHT(149), + /** + * + * + *
+     * Bootcamp type.
+     * 
+ * + * BOOTCAMP = 14; + */ + BOOTCAMP(14), + /** + * + * + *
+     * Bowling type.
+     * 
+ * + * BOWLING = 52; + */ + BOWLING(52), + /** + * + * + *
+     * Boxing type.
+     * 
+ * + * BOXING = 53; + */ + BOXING(53), + /** + * + * + *
+     * Breakdancing type.
+     * 
+ * + * BREAKDANCING = 157; + */ + BREAKDANCING(157), + /** + * + * + *
+     * Calisthenics type.
+     * 
+ * + * CALISTHENICS = 54; + */ + CALISTHENICS(54), + /** + * + * + *
+     * Canoeing type.
+     * 
+ * + * CANOEING = 15; + */ + CANOEING(15), + /** + * + * + *
+     * Cardio sculpt type.
+     * 
+ * + * CARDIO_SCULPT = 129; + */ + CARDIO_SCULPT(129), + /** + * + * + *
+     * Cardio workout type.
+     * 
+ * + * CARDIO_WORKOUT = 140; + */ + CARDIO_WORKOUT(140), + /** + * + * + *
+     * Carpentry type.
+     * 
+ * + * CARPENTRY = 108; + */ + CARPENTRY(108), + /** + * + * + *
+     * Cheerleading type.
+     * 
+ * + * CHEERLEADING = 165; + */ + CHEERLEADING(165), + /** + * + * + *
+     * Circuit training type.
+     * 
+ * + * CIRCUIT_TRAINING = 16; + */ + CIRCUIT_TRAINING(16), + /** + * + * + *
+     * Cleaning type.
+     * 
+ * + * CLEANING = 105; + */ + CLEANING(105), + /** + * + * + *
+     * Climbing type.
+     * 
+ * + * CLIMBING = 55; + */ + CLIMBING(55), + /** + * + * + *
+     * Core training type.
+     * 
+ * + * CORE_TRAINING = 17; + */ + CORE_TRAINING(17), + /** + * + * + *
+     * Cricket type.
+     * 
+ * + * CRICKET = 56; + */ + CRICKET(56), + /** + * + * + *
+     * Croquet type.
+     * 
+ * + * CROQUET = 111; + */ + CROQUET(111), + /** + * + * + *
+     * Cross country ski type.
+     * 
+ * + * CROSS_COUNTRY_SKI = 18; + */ + CROSS_COUNTRY_SKI(18), + /** + * + * + *
+     * Cross training type.
+     * 
+ * + * CROSS_TRAINING = 57; + */ + CROSS_TRAINING(57), + /** + * + * + *
+     * Crossfit type.
+     * 
+ * + * CROSSFIT = 19; + */ + CROSSFIT(19), + /** + * + * + *
+     * Curling type.
+     * 
+ * + * CURLING = 58; + */ + CURLING(58), + /** + * + * + *
+     * Dancing type.
+     * 
+ * + * DANCING = 20; + */ + DANCING(20), + /** + * + * + *
+     * Diving type.
+     * 
+ * + * DIVING = 59; + */ + DIVING(59), + /** + * + * + *
+     * Electric bike type.
+     * 
+ * + * ELECTRIC_BIKE = 152; + */ + ELECTRIC_BIKE(152), + /** + * + * + *
+     * Electric scooter type.
+     * 
+ * + * ELECTRIC_SCOOTER = 168; + */ + ELECTRIC_SCOOTER(168), + /** + * + * + *
+     * Elliptical type.
+     * 
+ * + * ELLIPTICAL = 21; + */ + ELLIPTICAL(21), + /** + * + * + *
+     * Equestrian sports type.
+     * 
+ * + * EQUESTRIAN_SPORTS = 60; + */ + EQUESTRIAN_SPORTS(60), + /** + * + * + *
+     * Exercise class type.
+     * 
+ * + * EXERCISE_CLASS = 61; + */ + EXERCISE_CLASS(61), + /** + * + * + *
+     * Fencing type.
+     * 
+ * + * FENCING = 62; + */ + FENCING(62), + /** + * + * + *
+     * Field hockey type.
+     * 
+ * + * FIELD_HOCKEY = 113; + */ + FIELD_HOCKEY(113), + /** + * + * + *
+     * Fishing type.
+     * 
+ * + * FISHING = 63; + */ + FISHING(63), + /** + * + * + *
+     * Fitness gaming type.
+     * 
+ * + * FITNESS_GAMING = 64; + */ + FITNESS_GAMING(64), + /** + * + * + *
+     * Foiling type.
+     * 
+ * + * FOILING = 175; + */ + FOILING(175), + /** + * + * + *
+     * Football american type.
+     * 
+ * + * FOOTBALL_AMERICAN = 65; + */ + FOOTBALL_AMERICAN(65), + /** + * + * + *
+     * Football australian type.
+     * 
+ * + * FOOTBALL_AUSTRALIAN = 66; + */ + FOOTBALL_AUSTRALIAN(66), + /** + * + * + *
+     * Free weights type.
+     * 
+ * + * FREE_WEIGHTS = 148; + */ + FREE_WEIGHTS(148), + /** + * + * + *
+     * Frisbee playing general type.
+     * 
+ * + * FRISBEE_PLAYING_GENERAL = 67; + */ + FRISBEE_PLAYING_GENERAL(67), + /** + * + * + *
+     * Functional strength training type.
+     * 
+ * + * FUNCTIONAL_STRENGTH_TRAINING = 68; + */ + FUNCTIONAL_STRENGTH_TRAINING(68), + /** + * + * + *
+     * Gardening type.
+     * 
+ * + * GARDENING = 107; + */ + GARDENING(107), + /** + * + * + *
+     * Golf type.
+     * 
+ * + * GOLF = 22; + */ + GOLF(22), + /** + * + * + *
+     * Gymnastics type.
+     * 
+ * + * GYMNASTICS = 69; + */ + GYMNASTICS(69), + /** + * + * + *
+     * Handball type.
+     * 
+ * + * HANDBALL = 70; + */ + HANDBALL(70), + /** + * + * + *
+     * Hand cycling type.
+     * 
+ * + * HAND_CYCLING = 71; + */ + HAND_CYCLING(71), + /** + * + * + *
+     * Hiit type.
+     * 
+ * + * HIIT = 9; + */ + HIIT(9), + /** + * + * + *
+     * Hiking type.
+     * 
+ * + * HIKING = 5; + */ + HIKING(5), + /** + * + * + *
+     * Hip hop type.
+     * 
+ * + * HIP_HOP = 158; + */ + HIP_HOP(158), + /** + * + * + *
+     * Hockey type.
+     * 
+ * + * HOCKEY = 72; + */ + HOCKEY(72), + /** + * + * + *
+     * Hoeing type.
+     * 
+ * + * HOEING = 109; + */ + HOEING(109), + /** + * + * + *
+     * Household chores type.
+     * 
+ * + * HOUSEHOLD_CHORES = 137; + */ + HOUSEHOLD_CHORES(137), + /** + * + * + *
+     * Hunting type.
+     * 
+ * + * HUNTING = 73; + */ + HUNTING(73), + /** + * + * + *
+     * Ice skating type.
+     * 
+ * + * ICE_SKATING = 127; + */ + ICE_SKATING(127), + /** + * + * + *
+     * Incline run type.
+     * 
+ * + * INCLINE_RUN = 142; + */ + INCLINE_RUN(142), + /** + * + * + *
+     * Incline walk type.
+     * 
+ * + * INCLINE_WALK = 146; + */ + INCLINE_WALK(146), + /** + * + * + *
+     * Indoor climbing type.
+     * 
+ * + * INDOOR_CLIMBING = 23; + */ + INDOOR_CLIMBING(23), + /** + * + * + *
+     * Interval workout type.
+     * 
+ * + * INTERVAL_WORKOUT = 24; + */ + INTERVAL_WORKOUT(24), + /** + * + * + *
+     * Jazz dance type.
+     * 
+ * + * JAZZ_DANCE = 154; + */ + JAZZ_DANCE(154), + /** + * + * + *
+     * Jiu jitsu type.
+     * 
+ * + * JIU_JITSU = 160; + */ + JIU_JITSU(160), + /** + * + * + *
+     * Jumping rope type.
+     * 
+ * + * JUMPING_ROPE = 74; + */ + JUMPING_ROPE(74), + /** + * + * + *
+     * Karate type.
+     * 
+ * + * KARATE = 159; + */ + KARATE(159), + /** + * + * + *
+     * Kayaking type.
+     * 
+ * + * KAYAKING = 25; + */ + KAYAKING(25), + /** + * + * + *
+     * Kickboxing type.
+     * 
+ * + * KICKBOXING = 26; + */ + KICKBOXING(26), + /** + * + * + *
+     * Kitesurfing type.
+     * 
+ * + * KITESURFING = 172; + */ + KITESURFING(172), + /** + * + * + *
+     * Lacrosse type.
+     * 
+ * + * LACROSSE = 75; + */ + LACROSSE(75), + /** + * + * + *
+     * Martial arts type.
+     * 
+ * + * MARTIAL_ARTS = 27; + */ + MARTIAL_ARTS(27), + /** + * + * + *
+     * Meditate type.
+     * 
+ * + * MEDITATE = 28; + */ + MEDITATE(28), + /** + * + * + *
+     * Modern dance type.
+     * 
+ * + * MODERN_DANCE = 153; + */ + MODERN_DANCE(153), + /** + * + * + *
+     * Motocross type.
+     * 
+ * + * MOTOCROSS = 114; + */ + MOTOCROSS(114), + /** + * + * + *
+     * Motorcycle type.
+     * 
+ * + * MOTORCYCLE = 121; + */ + MOTORCYCLE(121), + /** + * + * + *
+     * Mountain bike type.
+     * 
+ * + * MOUNTAIN_BIKE = 128; + */ + MOUNTAIN_BIKE(128), + /** + * + * + *
+     * Mowing lawn type.
+     * 
+ * + * MOWING_LAWN = 106; + */ + MOWING_LAWN(106), + /** + * + * + *
+     * Muay thai type.
+     * 
+ * + * MUAY_THAI = 162; + */ + MUAY_THAI(162), + /** + * + * + *
+     * Multisport type.
+     * 
+ * + * MULTISPORT = 76; + */ + MULTISPORT(76), + /** + * + * + *
+     * Musical performance type.
+     * 
+ * + * MUSICAL_PERFORMANCE = 163; + */ + MUSICAL_PERFORMANCE(163), + /** + * + * + *
+     * Nordic walking type.
+     * 
+ * + * NORDIC_WALKING = 145; + */ + NORDIC_WALKING(145), + /** + * + * + *
+     * Orienteering type.
+     * 
+ * + * ORIENTEERING = 115; + */ + ORIENTEERING(115), + /** + * + * + *
+     * Other type.
+     * 
+ * + * OTHER = 12; + */ + OTHER(12), + /** + * + * + *
+     * Outdoor bike type.
+     * 
+ * + * OUTDOOR_BIKE = 29; + */ + OUTDOOR_BIKE(29), + /** + * + * + *
+     * Outdoor workout type.
+     * 
+ * + * OUTDOOR_WORKOUT = 30; + */ + OUTDOOR_WORKOUT(30), + /** + * + * + *
+     * Paddleboarding type.
+     * 
+ * + * PADDLEBOARDING = 31; + */ + PADDLEBOARDING(31), + /** + * + * + *
+     * Padel type.
+     * 
+ * + * PADEL = 176; + */ + PADEL(176), + /** + * + * + *
+     * Painting type.
+     * 
+ * + * PAINTING = 170; + */ + PAINTING(170), + /** + * + * + *
+     * Paragliding type.
+     * 
+ * + * PARAGLIDING = 78; + */ + PARAGLIDING(78), + /** + * + * + *
+     * Parkour type.
+     * 
+ * + * PARKOUR = 166; + */ + PARKOUR(166), + /** + * + * + *
+     * Pickelball type.
+     * 
+ * + * PICKELBALL = 79; + */ + PICKELBALL(79), + /** + * + * + *
+     * Pilates type.
+     * 
+ * + * PILATES = 7; + */ + PILATES(7), + /** + * + * + *
+     * Polo type.
+     * 
+ * + * POLO = 116; + */ + POLO(116), + /** + * + * + *
+     * Powerlifting type.
+     * 
+ * + * POWERLIFTING = 32; + */ + POWERLIFTING(32), + /** + * + * + *
+     * Power walking type.
+     * 
+ * + * POWER_WALKING = 143; + */ + POWER_WALKING(143), + /** + * + * + *
+     * Racket sports type.
+     * 
+ * + * RACKET_SPORTS = 169; + */ + RACKET_SPORTS(169), + /** + * + * + *
+     * Racquetball type.
+     * 
+ * + * RACQUETBALL = 80; + */ + RACQUETBALL(80), + /** + * + * + *
+     * Resistance bands type.
+     * 
+ * + * RESISTANCE_BANDS = 151; + */ + RESISTANCE_BANDS(151), + /** + * + * + *
+     * Rock climbing type.
+     * 
+ * + * ROCK_CLIMBING = 123; + */ + ROCK_CLIMBING(123), + /** + * + * + *
+     * Rollerblading type.
+     * 
+ * + * ROLLERBLADING = 33; + */ + ROLLERBLADING(33), + /** + * + * + *
+     * Roller skating type.
+     * 
+ * + * ROLLER_SKATING = 118; + */ + ROLLER_SKATING(118), + /** + * + * + *
+     * Rowing type.
+     * 
+ * + * ROWING = 81; + */ + ROWING(81), + /** + * + * + *
+     * Rowing machine type.
+     * 
+ * + * ROWING_MACHINE = 34; + */ + ROWING_MACHINE(34), + /** + * + * + *
+     * Rucking type.
+     * 
+ * + * RUCKING = 144; + */ + RUCKING(144), + /** + * + * + *
+     * Rugby type.
+     * 
+ * + * RUGBY = 82; + */ + RUGBY(82), + /** + * + * + *
+     * Running type.
+     * 
+ * + * RUNNING = 1; + */ + RUNNING(1), + /** + * + * + *
+     * Sailing type.
+     * 
+ * + * SAILING = 83; + */ + SAILING(83), + /** + * + * + *
+     * Scootering type.
+     * 
+ * + * SCOOTERING = 167; + */ + SCOOTERING(167), + /** + * + * + *
+     * Scuba diving type.
+     * 
+ * + * SCUBA_DIVING = 84; + */ + SCUBA_DIVING(84), + /** + * + * + *
+     * Shooting type.
+     * 
+ * + * SHOOTING = 104; + */ + SHOOTING(104), + /** + * + * + *
+     * Shoveling type.
+     * 
+ * + * SHOVELING = 171; + */ + SHOVELING(171), + /** + * + * + *
+     * Skateboarding type.
+     * 
+ * + * SKATEBOARDING = 117; + */ + SKATEBOARDING(117), + /** + * + * + *
+     * Skating type.
+     * 
+ * + * SKATING = 35; + */ + SKATING(35), + /** + * + * + *
+     * Skiing type.
+     * 
+ * + * SKIING = 36; + */ + SKIING(36), + /** + * + * + *
+     * Skydiving type.
+     * 
+ * + * SKYDIVING = 182; + */ + SKYDIVING(182), + /** + * + * + *
+     * Snorkeling type.
+     * 
+ * + * SNORKELING = 37; + */ + SNORKELING(37), + /** + * + * + *
+     * Snowboarding type.
+     * 
+ * + * SNOWBOARDING = 38; + */ + SNOWBOARDING(38), + /** + * + * + *
+     * Snowmobiling type.
+     * 
+ * + * SNOWMOBILING = 179; + */ + SNOWMOBILING(179), + /** + * + * + *
+     * Snowshoeing type.
+     * 
+ * + * SNOWSHOEING = 85; + */ + SNOWSHOEING(85), + /** + * + * + *
+     * Snow sport type.
+     * 
+ * + * SNOW_SPORT = 86; + */ + SNOW_SPORT(86), + /** + * + * + *
+     * Soccer type.
+     * 
+ * + * SOCCER = 87; + */ + SOCCER(87), + /** + * + * + *
+     * Softball type.
+     * 
+ * + * SOFTBALL = 88; + */ + SOFTBALL(88), + /** + * + * + *
+     * Speed skating type.
+     * 
+ * + * SPEED_SKATING = 178; + */ + SPEED_SKATING(178), + /** + * + * + *
+     * Spinning type.
+     * 
+ * + * SPINNING = 39; + */ + SPINNING(39), + /** + * + * + *
+     * Sport type.
+     * 
+ * + * SPORT = 40; + */ + SPORT(40), + /** + * + * + *
+     * Squash type.
+     * 
+ * + * SQUASH = 89; + */ + SQUASH(89), + /** + * + * + *
+     * Stairclimber type.
+     * 
+ * + * STAIRCLIMBER = 41; + */ + STAIRCLIMBER(41), + /** + * + * + *
+     * Stationary bike type.
+     * 
+ * + * STATIONARY_BIKE = 139; + */ + STATIONARY_BIKE(139), + /** + * + * + *
+     * Step training type.
+     * 
+ * + * STEP_TRAINING = 90; + */ + STEP_TRAINING(90), + /** + * + * + *
+     * Strength training type.
+     * 
+ * + * STRENGTH_TRAINING = 11; + */ + STRENGTH_TRAINING(11), + /** + * + * + *
+     * Stretching type.
+     * 
+ * + * STRETCHING = 42; + */ + STRETCHING(42), + /** + * + * + *
+     * Stroller walk type.
+     * 
+ * + * STROLLER_WALK = 122; + */ + STROLLER_WALK(122), + /** + * + * + *
+     * Surfing type.
+     * 
+ * + * SURFING = 43; + */ + SURFING(43), + /** + * + * + *
+     * Swimming type.
+     * 
+ * + * SWIMMING = 4; + */ + SWIMMING(4), + /** + * + * + *
+     * Swimming open water type.
+     * 
+ * + * SWIMMING_OPEN_WATER = 91; + */ + SWIMMING_OPEN_WATER(91), + /** + * + * + *
+     * Swimming pool type.
+     * 
+ * + * SWIMMING_POOL = 101; + */ + SWIMMING_POOL(101), + /** + * + * + *
+     * Synchronized swimming type.
+     * 
+ * + * SYNCHRONIZED_SWIMMING = 177; + */ + SYNCHRONIZED_SWIMMING(177), + /** + * + * + *
+     * Tabata workout type.
+     * 
+ * + * TABATA_WORKOUT = 130; + */ + TABATA_WORKOUT(130), + /** + * + * + *
+     * Table tennis type.
+     * 
+ * + * TABLE_TENNIS = 92; + */ + TABLE_TENNIS(92), + /** + * + * + *
+     * Taekwondo type.
+     * 
+ * + * TAEKWONDO = 161; + */ + TAEKWONDO(161), + /** + * + * + *
+     * Tai chi type.
+     * 
+ * + * TAI_CHI = 93; + */ + TAI_CHI(93), + /** + * + * + *
+     * Tango type.
+     * 
+ * + * TANGO = 155; + */ + TANGO(155), + /** + * + * + *
+     * Tennis type.
+     * 
+ * + * TENNIS = 44; + */ + TENNIS(44), + /** + * + * + *
+     * Track and field type.
+     * 
+ * + * TRACK_AND_FIELD = 94; + */ + TRACK_AND_FIELD(94), + /** + * + * + *
+     * Trail run type.
+     * 
+ * + * TRAIL_RUN = 141; + */ + TRAIL_RUN(141), + /** + * + * + *
+     * Trampoline type.
+     * 
+ * + * TRAMPOLINE = 119; + */ + TRAMPOLINE(119), + /** + * + * + *
+     * Treadmill type.
+     * 
+ * + * TREADMILL = 45; + */ + TREADMILL(45), + /** + * + * + *
+     * Treadmill walk type.
+     * 
+ * + * TREADMILL_WALK = 138; + */ + TREADMILL_WALK(138), + /** + * + * + *
+     * Trx type.
+     * 
+ * + * TRX = 131; + */ + TRX(131), + /** + * + * + *
+     * Ultimate frisbee type.
+     * 
+ * + * ULTIMATE_FRISBEE = 112; + */ + ULTIMATE_FRISBEE(112), + /** + * + * + *
+     * Unicycling type.
+     * 
+ * + * UNICYCLING = 102; + */ + UNICYCLING(102), + /** + * + * + *
+     * Volleyball type.
+     * 
+ * + * VOLLEYBALL = 95; + */ + VOLLEYBALL(95), + /** + * + * + *
+     * Volleyball beach type.
+     * 
+ * + * VOLLEYBALL_BEACH = 120; + */ + VOLLEYBALL_BEACH(120), + /** + * + * + *
+     * Wakeboarding type.
+     * 
+ * + * WAKEBOARDING = 173; + */ + WAKEBOARDING(173), + /** + * + * + *
+     * Walking type.
+     * 
+ * + * WALKING = 2; + */ + WALKING(2), + /** + * + * + *
+     * Walk with weights type.
+     * 
+ * + * WALK_WITH_WEIGHTS = 147; + */ + WALK_WITH_WEIGHTS(147), + /** + * + * + *
+     * Water aerobics type.
+     * 
+ * + * WATER_AEROBICS = 96; + */ + WATER_AEROBICS(96), + /** + * + * + *
+     * Water jogging type.
+     * 
+ * + * WATER_JOGGING = 126; + */ + WATER_JOGGING(126), + /** + * + * + *
+     * Water polo type.
+     * 
+ * + * WATER_POLO = 97; + */ + WATER_POLO(97), + /** + * + * + *
+     * Water skiing type.
+     * 
+ * + * WATER_SKIING = 124; + */ + WATER_SKIING(124), + /** + * + * + *
+     * Water sport type.
+     * 
+ * + * WATER_SPORT = 98; + */ + WATER_SPORT(98), + /** + * + * + *
+     * Water volleyball type.
+     * 
+ * + * WATER_VOLLEYBALL = 125; + */ + WATER_VOLLEYBALL(125), + /** + * + * + *
+     * Weeding type.
+     * 
+ * + * WEEDING = 110; + */ + WEEDING(110), + /** + * + * + *
+     * Weightlifting type.
+     * 
+ * + * WEIGHTLIFTING = 10; + */ + WEIGHTLIFTING(10), + /** + * + * + *
+     * Weight machines type.
+     * 
+ * + * WEIGHT_MACHINES = 150; + */ + WEIGHT_MACHINES(150), + /** + * + * + *
+     * Weights type.
+     * 
+ * + * WEIGHTS = 46; + */ + WEIGHTS(46), + /** + * + * + *
+     * Wheelchair type.
+     * 
+ * + * WHEELCHAIR = 99; + */ + WHEELCHAIR(99), + /** + * + * + *
+     * Windsurfing type.
+     * 
+ * + * WINDSURFING = 174; + */ + WINDSURFING(174), + /** + * + * + *
+     * Workout type.
+     * 
+ * + * WORKOUT = 8; + */ + WORKOUT(8), + /** + * + * + *
+     * Wrestling type.
+     * 
+ * + * WRESTLING = 100; + */ + WRESTLING(100), + /** + * + * + *
+     * Yoga type.
+     * 
+ * + * YOGA = 6; + */ + YOGA(6), + /** + * + * + *
+     * Yoga bikram type.
+     * 
+ * + * YOGA_BIKRAM = 132; + */ + YOGA_BIKRAM(132), + /** + * + * + *
+     * Yoga hatha type.
+     * 
+ * + * YOGA_HATHA = 133; + */ + YOGA_HATHA(133), + /** + * + * + *
+     * Yoga power type.
+     * 
+ * + * YOGA_POWER = 134; + */ + YOGA_POWER(134), + /** + * + * + *
+     * Yoga vinyasa type.
+     * 
+ * + * YOGA_VINYASA = 135; + */ + YOGA_VINYASA(135), + /** + * + * + *
+     * Zumba type.
+     * 
+ * + * ZUMBA = 136; + */ + ZUMBA(136), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ExerciseType"); + } + + /** + * + * + *
+     * Exercise type is unspecified.
+     * 
+ * + * EXERCISE_TYPE_UNSPECIFIED = 0; + */ + public static final int EXERCISE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Aerobic workout type.
+     * 
+ * + * AEROBIC_WORKOUT = 13; + */ + public static final int AEROBIC_WORKOUT_VALUE = 13; + + /** + * + * + *
+     * Archery type.
+     * 
+ * + * ARCHERY = 47; + */ + public static final int ARCHERY_VALUE = 47; + + /** + * + * + *
+     * Assault bike type.
+     * 
+ * + * ASSAULT_BIKE = 164; + */ + public static final int ASSAULT_BIKE_VALUE = 164; + + /** + * + * + *
+     * Backpacking type.
+     * 
+ * + * BACKPACKING = 181; + */ + public static final int BACKPACKING_VALUE = 181; + + /** + * + * + *
+     * Badminton type.
+     * 
+ * + * BADMINTON = 48; + */ + public static final int BADMINTON_VALUE = 48; + + /** + * + * + *
+     * Ballet type.
+     * 
+ * + * BALLET = 103; + */ + public static final int BALLET_VALUE = 103; + + /** + * + * + *
+     * Ballroom dance type.
+     * 
+ * + * BALLROOM_DANCE = 156; + */ + public static final int BALLROOM_DANCE_VALUE = 156; + + /** + * + * + *
+     * Barre class type.
+     * 
+ * + * BARRE_CLASS = 49; + */ + public static final int BARRE_CLASS_VALUE = 49; + + /** + * + * + *
+     * Baseball type.
+     * 
+ * + * BASEBALL = 50; + */ + public static final int BASEBALL_VALUE = 50; + + /** + * + * + *
+     * Basketball type.
+     * 
+ * + * BASKETBALL = 51; + */ + public static final int BASKETBALL_VALUE = 51; + + /** + * + * + *
+     * Biking type.
+     * 
+ * + * BIKING = 3; + */ + public static final int BIKING_VALUE = 3; + + /** + * + * + *
+     * Billiards type.
+     * 
+ * + * BILLIARDS = 180; + */ + public static final int BILLIARDS_VALUE = 180; + + /** + * + * + *
+     * Body weight type.
+     * 
+ * + * BODY_WEIGHT = 149; + */ + public static final int BODY_WEIGHT_VALUE = 149; + + /** + * + * + *
+     * Bootcamp type.
+     * 
+ * + * BOOTCAMP = 14; + */ + public static final int BOOTCAMP_VALUE = 14; + + /** + * + * + *
+     * Bowling type.
+     * 
+ * + * BOWLING = 52; + */ + public static final int BOWLING_VALUE = 52; + + /** + * + * + *
+     * Boxing type.
+     * 
+ * + * BOXING = 53; + */ + public static final int BOXING_VALUE = 53; + + /** + * + * + *
+     * Breakdancing type.
+     * 
+ * + * BREAKDANCING = 157; + */ + public static final int BREAKDANCING_VALUE = 157; + + /** + * + * + *
+     * Calisthenics type.
+     * 
+ * + * CALISTHENICS = 54; + */ + public static final int CALISTHENICS_VALUE = 54; + + /** + * + * + *
+     * Canoeing type.
+     * 
+ * + * CANOEING = 15; + */ + public static final int CANOEING_VALUE = 15; + + /** + * + * + *
+     * Cardio sculpt type.
+     * 
+ * + * CARDIO_SCULPT = 129; + */ + public static final int CARDIO_SCULPT_VALUE = 129; + + /** + * + * + *
+     * Cardio workout type.
+     * 
+ * + * CARDIO_WORKOUT = 140; + */ + public static final int CARDIO_WORKOUT_VALUE = 140; + + /** + * + * + *
+     * Carpentry type.
+     * 
+ * + * CARPENTRY = 108; + */ + public static final int CARPENTRY_VALUE = 108; + + /** + * + * + *
+     * Cheerleading type.
+     * 
+ * + * CHEERLEADING = 165; + */ + public static final int CHEERLEADING_VALUE = 165; + + /** + * + * + *
+     * Circuit training type.
+     * 
+ * + * CIRCUIT_TRAINING = 16; + */ + public static final int CIRCUIT_TRAINING_VALUE = 16; + + /** + * + * + *
+     * Cleaning type.
+     * 
+ * + * CLEANING = 105; + */ + public static final int CLEANING_VALUE = 105; + + /** + * + * + *
+     * Climbing type.
+     * 
+ * + * CLIMBING = 55; + */ + public static final int CLIMBING_VALUE = 55; + + /** + * + * + *
+     * Core training type.
+     * 
+ * + * CORE_TRAINING = 17; + */ + public static final int CORE_TRAINING_VALUE = 17; + + /** + * + * + *
+     * Cricket type.
+     * 
+ * + * CRICKET = 56; + */ + public static final int CRICKET_VALUE = 56; + + /** + * + * + *
+     * Croquet type.
+     * 
+ * + * CROQUET = 111; + */ + public static final int CROQUET_VALUE = 111; + + /** + * + * + *
+     * Cross country ski type.
+     * 
+ * + * CROSS_COUNTRY_SKI = 18; + */ + public static final int CROSS_COUNTRY_SKI_VALUE = 18; + + /** + * + * + *
+     * Cross training type.
+     * 
+ * + * CROSS_TRAINING = 57; + */ + public static final int CROSS_TRAINING_VALUE = 57; + + /** + * + * + *
+     * Crossfit type.
+     * 
+ * + * CROSSFIT = 19; + */ + public static final int CROSSFIT_VALUE = 19; + + /** + * + * + *
+     * Curling type.
+     * 
+ * + * CURLING = 58; + */ + public static final int CURLING_VALUE = 58; + + /** + * + * + *
+     * Dancing type.
+     * 
+ * + * DANCING = 20; + */ + public static final int DANCING_VALUE = 20; + + /** + * + * + *
+     * Diving type.
+     * 
+ * + * DIVING = 59; + */ + public static final int DIVING_VALUE = 59; + + /** + * + * + *
+     * Electric bike type.
+     * 
+ * + * ELECTRIC_BIKE = 152; + */ + public static final int ELECTRIC_BIKE_VALUE = 152; + + /** + * + * + *
+     * Electric scooter type.
+     * 
+ * + * ELECTRIC_SCOOTER = 168; + */ + public static final int ELECTRIC_SCOOTER_VALUE = 168; + + /** + * + * + *
+     * Elliptical type.
+     * 
+ * + * ELLIPTICAL = 21; + */ + public static final int ELLIPTICAL_VALUE = 21; + + /** + * + * + *
+     * Equestrian sports type.
+     * 
+ * + * EQUESTRIAN_SPORTS = 60; + */ + public static final int EQUESTRIAN_SPORTS_VALUE = 60; + + /** + * + * + *
+     * Exercise class type.
+     * 
+ * + * EXERCISE_CLASS = 61; + */ + public static final int EXERCISE_CLASS_VALUE = 61; + + /** + * + * + *
+     * Fencing type.
+     * 
+ * + * FENCING = 62; + */ + public static final int FENCING_VALUE = 62; + + /** + * + * + *
+     * Field hockey type.
+     * 
+ * + * FIELD_HOCKEY = 113; + */ + public static final int FIELD_HOCKEY_VALUE = 113; + + /** + * + * + *
+     * Fishing type.
+     * 
+ * + * FISHING = 63; + */ + public static final int FISHING_VALUE = 63; + + /** + * + * + *
+     * Fitness gaming type.
+     * 
+ * + * FITNESS_GAMING = 64; + */ + public static final int FITNESS_GAMING_VALUE = 64; + + /** + * + * + *
+     * Foiling type.
+     * 
+ * + * FOILING = 175; + */ + public static final int FOILING_VALUE = 175; + + /** + * + * + *
+     * Football american type.
+     * 
+ * + * FOOTBALL_AMERICAN = 65; + */ + public static final int FOOTBALL_AMERICAN_VALUE = 65; + + /** + * + * + *
+     * Football australian type.
+     * 
+ * + * FOOTBALL_AUSTRALIAN = 66; + */ + public static final int FOOTBALL_AUSTRALIAN_VALUE = 66; + + /** + * + * + *
+     * Free weights type.
+     * 
+ * + * FREE_WEIGHTS = 148; + */ + public static final int FREE_WEIGHTS_VALUE = 148; + + /** + * + * + *
+     * Frisbee playing general type.
+     * 
+ * + * FRISBEE_PLAYING_GENERAL = 67; + */ + public static final int FRISBEE_PLAYING_GENERAL_VALUE = 67; + + /** + * + * + *
+     * Functional strength training type.
+     * 
+ * + * FUNCTIONAL_STRENGTH_TRAINING = 68; + */ + public static final int FUNCTIONAL_STRENGTH_TRAINING_VALUE = 68; + + /** + * + * + *
+     * Gardening type.
+     * 
+ * + * GARDENING = 107; + */ + public static final int GARDENING_VALUE = 107; + + /** + * + * + *
+     * Golf type.
+     * 
+ * + * GOLF = 22; + */ + public static final int GOLF_VALUE = 22; + + /** + * + * + *
+     * Gymnastics type.
+     * 
+ * + * GYMNASTICS = 69; + */ + public static final int GYMNASTICS_VALUE = 69; + + /** + * + * + *
+     * Handball type.
+     * 
+ * + * HANDBALL = 70; + */ + public static final int HANDBALL_VALUE = 70; + + /** + * + * + *
+     * Hand cycling type.
+     * 
+ * + * HAND_CYCLING = 71; + */ + public static final int HAND_CYCLING_VALUE = 71; + + /** + * + * + *
+     * Hiit type.
+     * 
+ * + * HIIT = 9; + */ + public static final int HIIT_VALUE = 9; + + /** + * + * + *
+     * Hiking type.
+     * 
+ * + * HIKING = 5; + */ + public static final int HIKING_VALUE = 5; + + /** + * + * + *
+     * Hip hop type.
+     * 
+ * + * HIP_HOP = 158; + */ + public static final int HIP_HOP_VALUE = 158; + + /** + * + * + *
+     * Hockey type.
+     * 
+ * + * HOCKEY = 72; + */ + public static final int HOCKEY_VALUE = 72; + + /** + * + * + *
+     * Hoeing type.
+     * 
+ * + * HOEING = 109; + */ + public static final int HOEING_VALUE = 109; + + /** + * + * + *
+     * Household chores type.
+     * 
+ * + * HOUSEHOLD_CHORES = 137; + */ + public static final int HOUSEHOLD_CHORES_VALUE = 137; + + /** + * + * + *
+     * Hunting type.
+     * 
+ * + * HUNTING = 73; + */ + public static final int HUNTING_VALUE = 73; + + /** + * + * + *
+     * Ice skating type.
+     * 
+ * + * ICE_SKATING = 127; + */ + public static final int ICE_SKATING_VALUE = 127; + + /** + * + * + *
+     * Incline run type.
+     * 
+ * + * INCLINE_RUN = 142; + */ + public static final int INCLINE_RUN_VALUE = 142; + + /** + * + * + *
+     * Incline walk type.
+     * 
+ * + * INCLINE_WALK = 146; + */ + public static final int INCLINE_WALK_VALUE = 146; + + /** + * + * + *
+     * Indoor climbing type.
+     * 
+ * + * INDOOR_CLIMBING = 23; + */ + public static final int INDOOR_CLIMBING_VALUE = 23; + + /** + * + * + *
+     * Interval workout type.
+     * 
+ * + * INTERVAL_WORKOUT = 24; + */ + public static final int INTERVAL_WORKOUT_VALUE = 24; + + /** + * + * + *
+     * Jazz dance type.
+     * 
+ * + * JAZZ_DANCE = 154; + */ + public static final int JAZZ_DANCE_VALUE = 154; + + /** + * + * + *
+     * Jiu jitsu type.
+     * 
+ * + * JIU_JITSU = 160; + */ + public static final int JIU_JITSU_VALUE = 160; + + /** + * + * + *
+     * Jumping rope type.
+     * 
+ * + * JUMPING_ROPE = 74; + */ + public static final int JUMPING_ROPE_VALUE = 74; + + /** + * + * + *
+     * Karate type.
+     * 
+ * + * KARATE = 159; + */ + public static final int KARATE_VALUE = 159; + + /** + * + * + *
+     * Kayaking type.
+     * 
+ * + * KAYAKING = 25; + */ + public static final int KAYAKING_VALUE = 25; + + /** + * + * + *
+     * Kickboxing type.
+     * 
+ * + * KICKBOXING = 26; + */ + public static final int KICKBOXING_VALUE = 26; + + /** + * + * + *
+     * Kitesurfing type.
+     * 
+ * + * KITESURFING = 172; + */ + public static final int KITESURFING_VALUE = 172; + + /** + * + * + *
+     * Lacrosse type.
+     * 
+ * + * LACROSSE = 75; + */ + public static final int LACROSSE_VALUE = 75; + + /** + * + * + *
+     * Martial arts type.
+     * 
+ * + * MARTIAL_ARTS = 27; + */ + public static final int MARTIAL_ARTS_VALUE = 27; + + /** + * + * + *
+     * Meditate type.
+     * 
+ * + * MEDITATE = 28; + */ + public static final int MEDITATE_VALUE = 28; + + /** + * + * + *
+     * Modern dance type.
+     * 
+ * + * MODERN_DANCE = 153; + */ + public static final int MODERN_DANCE_VALUE = 153; + + /** + * + * + *
+     * Motocross type.
+     * 
+ * + * MOTOCROSS = 114; + */ + public static final int MOTOCROSS_VALUE = 114; + + /** + * + * + *
+     * Motorcycle type.
+     * 
+ * + * MOTORCYCLE = 121; + */ + public static final int MOTORCYCLE_VALUE = 121; + + /** + * + * + *
+     * Mountain bike type.
+     * 
+ * + * MOUNTAIN_BIKE = 128; + */ + public static final int MOUNTAIN_BIKE_VALUE = 128; + + /** + * + * + *
+     * Mowing lawn type.
+     * 
+ * + * MOWING_LAWN = 106; + */ + public static final int MOWING_LAWN_VALUE = 106; + + /** + * + * + *
+     * Muay thai type.
+     * 
+ * + * MUAY_THAI = 162; + */ + public static final int MUAY_THAI_VALUE = 162; + + /** + * + * + *
+     * Multisport type.
+     * 
+ * + * MULTISPORT = 76; + */ + public static final int MULTISPORT_VALUE = 76; + + /** + * + * + *
+     * Musical performance type.
+     * 
+ * + * MUSICAL_PERFORMANCE = 163; + */ + public static final int MUSICAL_PERFORMANCE_VALUE = 163; + + /** + * + * + *
+     * Nordic walking type.
+     * 
+ * + * NORDIC_WALKING = 145; + */ + public static final int NORDIC_WALKING_VALUE = 145; + + /** + * + * + *
+     * Orienteering type.
+     * 
+ * + * ORIENTEERING = 115; + */ + public static final int ORIENTEERING_VALUE = 115; + + /** + * + * + *
+     * Other type.
+     * 
+ * + * OTHER = 12; + */ + public static final int OTHER_VALUE = 12; + + /** + * + * + *
+     * Outdoor bike type.
+     * 
+ * + * OUTDOOR_BIKE = 29; + */ + public static final int OUTDOOR_BIKE_VALUE = 29; + + /** + * + * + *
+     * Outdoor workout type.
+     * 
+ * + * OUTDOOR_WORKOUT = 30; + */ + public static final int OUTDOOR_WORKOUT_VALUE = 30; + + /** + * + * + *
+     * Paddleboarding type.
+     * 
+ * + * PADDLEBOARDING = 31; + */ + public static final int PADDLEBOARDING_VALUE = 31; + + /** + * + * + *
+     * Padel type.
+     * 
+ * + * PADEL = 176; + */ + public static final int PADEL_VALUE = 176; + + /** + * + * + *
+     * Painting type.
+     * 
+ * + * PAINTING = 170; + */ + public static final int PAINTING_VALUE = 170; + + /** + * + * + *
+     * Paragliding type.
+     * 
+ * + * PARAGLIDING = 78; + */ + public static final int PARAGLIDING_VALUE = 78; + + /** + * + * + *
+     * Parkour type.
+     * 
+ * + * PARKOUR = 166; + */ + public static final int PARKOUR_VALUE = 166; + + /** + * + * + *
+     * Pickelball type.
+     * 
+ * + * PICKELBALL = 79; + */ + public static final int PICKELBALL_VALUE = 79; + + /** + * + * + *
+     * Pilates type.
+     * 
+ * + * PILATES = 7; + */ + public static final int PILATES_VALUE = 7; + + /** + * + * + *
+     * Polo type.
+     * 
+ * + * POLO = 116; + */ + public static final int POLO_VALUE = 116; + + /** + * + * + *
+     * Powerlifting type.
+     * 
+ * + * POWERLIFTING = 32; + */ + public static final int POWERLIFTING_VALUE = 32; + + /** + * + * + *
+     * Power walking type.
+     * 
+ * + * POWER_WALKING = 143; + */ + public static final int POWER_WALKING_VALUE = 143; + + /** + * + * + *
+     * Racket sports type.
+     * 
+ * + * RACKET_SPORTS = 169; + */ + public static final int RACKET_SPORTS_VALUE = 169; + + /** + * + * + *
+     * Racquetball type.
+     * 
+ * + * RACQUETBALL = 80; + */ + public static final int RACQUETBALL_VALUE = 80; + + /** + * + * + *
+     * Resistance bands type.
+     * 
+ * + * RESISTANCE_BANDS = 151; + */ + public static final int RESISTANCE_BANDS_VALUE = 151; + + /** + * + * + *
+     * Rock climbing type.
+     * 
+ * + * ROCK_CLIMBING = 123; + */ + public static final int ROCK_CLIMBING_VALUE = 123; + + /** + * + * + *
+     * Rollerblading type.
+     * 
+ * + * ROLLERBLADING = 33; + */ + public static final int ROLLERBLADING_VALUE = 33; + + /** + * + * + *
+     * Roller skating type.
+     * 
+ * + * ROLLER_SKATING = 118; + */ + public static final int ROLLER_SKATING_VALUE = 118; + + /** + * + * + *
+     * Rowing type.
+     * 
+ * + * ROWING = 81; + */ + public static final int ROWING_VALUE = 81; + + /** + * + * + *
+     * Rowing machine type.
+     * 
+ * + * ROWING_MACHINE = 34; + */ + public static final int ROWING_MACHINE_VALUE = 34; + + /** + * + * + *
+     * Rucking type.
+     * 
+ * + * RUCKING = 144; + */ + public static final int RUCKING_VALUE = 144; + + /** + * + * + *
+     * Rugby type.
+     * 
+ * + * RUGBY = 82; + */ + public static final int RUGBY_VALUE = 82; + /** * * @@ -102,153 +3147,537 @@ public enum ExerciseType implements com.google.protobuf.ProtocolMessageEnum { * Running type. * * - * RUNNING = 1; + * RUNNING = 1; + */ + public static final int RUNNING_VALUE = 1; + + /** + * + * + *
+     * Sailing type.
+     * 
+ * + * SAILING = 83; + */ + public static final int SAILING_VALUE = 83; + + /** + * + * + *
+     * Scootering type.
+     * 
+ * + * SCOOTERING = 167; + */ + public static final int SCOOTERING_VALUE = 167; + + /** + * + * + *
+     * Scuba diving type.
+     * 
+ * + * SCUBA_DIVING = 84; + */ + public static final int SCUBA_DIVING_VALUE = 84; + + /** + * + * + *
+     * Shooting type.
+     * 
+ * + * SHOOTING = 104; + */ + public static final int SHOOTING_VALUE = 104; + + /** + * + * + *
+     * Shoveling type.
+     * 
+ * + * SHOVELING = 171; + */ + public static final int SHOVELING_VALUE = 171; + + /** + * + * + *
+     * Skateboarding type.
+     * 
+ * + * SKATEBOARDING = 117; + */ + public static final int SKATEBOARDING_VALUE = 117; + + /** + * + * + *
+     * Skating type.
+     * 
+ * + * SKATING = 35; + */ + public static final int SKATING_VALUE = 35; + + /** + * + * + *
+     * Skiing type.
+     * 
+ * + * SKIING = 36; + */ + public static final int SKIING_VALUE = 36; + + /** + * + * + *
+     * Skydiving type.
+     * 
+ * + * SKYDIVING = 182; + */ + public static final int SKYDIVING_VALUE = 182; + + /** + * + * + *
+     * Snorkeling type.
+     * 
+ * + * SNORKELING = 37; + */ + public static final int SNORKELING_VALUE = 37; + + /** + * + * + *
+     * Snowboarding type.
+     * 
+ * + * SNOWBOARDING = 38; + */ + public static final int SNOWBOARDING_VALUE = 38; + + /** + * + * + *
+     * Snowmobiling type.
+     * 
+ * + * SNOWMOBILING = 179; + */ + public static final int SNOWMOBILING_VALUE = 179; + + /** + * + * + *
+     * Snowshoeing type.
+     * 
+ * + * SNOWSHOEING = 85; + */ + public static final int SNOWSHOEING_VALUE = 85; + + /** + * + * + *
+     * Snow sport type.
+     * 
+ * + * SNOW_SPORT = 86; + */ + public static final int SNOW_SPORT_VALUE = 86; + + /** + * + * + *
+     * Soccer type.
+     * 
+ * + * SOCCER = 87; + */ + public static final int SOCCER_VALUE = 87; + + /** + * + * + *
+     * Softball type.
+     * 
+ * + * SOFTBALL = 88; + */ + public static final int SOFTBALL_VALUE = 88; + + /** + * + * + *
+     * Speed skating type.
+     * 
+ * + * SPEED_SKATING = 178; + */ + public static final int SPEED_SKATING_VALUE = 178; + + /** + * + * + *
+     * Spinning type.
+     * 
+ * + * SPINNING = 39; + */ + public static final int SPINNING_VALUE = 39; + + /** + * + * + *
+     * Sport type.
+     * 
+ * + * SPORT = 40; + */ + public static final int SPORT_VALUE = 40; + + /** + * + * + *
+     * Squash type.
+     * 
+ * + * SQUASH = 89; + */ + public static final int SQUASH_VALUE = 89; + + /** + * + * + *
+     * Stairclimber type.
+     * 
+ * + * STAIRCLIMBER = 41; + */ + public static final int STAIRCLIMBER_VALUE = 41; + + /** + * + * + *
+     * Stationary bike type.
+     * 
+ * + * STATIONARY_BIKE = 139; + */ + public static final int STATIONARY_BIKE_VALUE = 139; + + /** + * + * + *
+     * Step training type.
+     * 
+ * + * STEP_TRAINING = 90; + */ + public static final int STEP_TRAINING_VALUE = 90; + + /** + * + * + *
+     * Strength training type.
+     * 
+ * + * STRENGTH_TRAINING = 11; + */ + public static final int STRENGTH_TRAINING_VALUE = 11; + + /** + * + * + *
+     * Stretching type.
+     * 
+ * + * STRETCHING = 42; + */ + public static final int STRETCHING_VALUE = 42; + + /** + * + * + *
+     * Stroller walk type.
+     * 
+ * + * STROLLER_WALK = 122; + */ + public static final int STROLLER_WALK_VALUE = 122; + + /** + * + * + *
+     * Surfing type.
+     * 
+ * + * SURFING = 43; + */ + public static final int SURFING_VALUE = 43; + + /** + * + * + *
+     * Swimming type.
+     * 
+ * + * SWIMMING = 4; + */ + public static final int SWIMMING_VALUE = 4; + + /** + * + * + *
+     * Swimming open water type.
+     * 
+ * + * SWIMMING_OPEN_WATER = 91; + */ + public static final int SWIMMING_OPEN_WATER_VALUE = 91; + + /** + * + * + *
+     * Swimming pool type.
+     * 
+ * + * SWIMMING_POOL = 101; */ - RUNNING(1), + public static final int SWIMMING_POOL_VALUE = 101; + /** * * *
-     * Walking type.
+     * Synchronized swimming type.
      * 
* - * WALKING = 2; + * SYNCHRONIZED_SWIMMING = 177; */ - WALKING(2), + public static final int SYNCHRONIZED_SWIMMING_VALUE = 177; + /** * * *
-     * Biking type.
+     * Tabata workout type.
      * 
* - * BIKING = 3; + * TABATA_WORKOUT = 130; */ - BIKING(3), + public static final int TABATA_WORKOUT_VALUE = 130; + /** * * *
-     * Swimming type.
+     * Table tennis type.
      * 
* - * SWIMMING = 4; + * TABLE_TENNIS = 92; */ - SWIMMING(4), + public static final int TABLE_TENNIS_VALUE = 92; + /** * * *
-     * Hiking type.
+     * Taekwondo type.
      * 
* - * HIKING = 5; + * TAEKWONDO = 161; */ - HIKING(5), + public static final int TAEKWONDO_VALUE = 161; + /** * * *
-     * Yoga type.
+     * Tai chi type.
      * 
* - * YOGA = 6; + * TAI_CHI = 93; */ - YOGA(6), + public static final int TAI_CHI_VALUE = 93; + /** * * *
-     * Pilates type.
+     * Tango type.
      * 
* - * PILATES = 7; + * TANGO = 155; */ - PILATES(7), + public static final int TANGO_VALUE = 155; + /** * * *
-     * Workout type.
+     * Tennis type.
      * 
* - * WORKOUT = 8; + * TENNIS = 44; */ - WORKOUT(8), + public static final int TENNIS_VALUE = 44; + /** * * *
-     * HIIT type.
+     * Track and field type.
      * 
* - * HIIT = 9; + * TRACK_AND_FIELD = 94; */ - HIIT(9), + public static final int TRACK_AND_FIELD_VALUE = 94; + /** * * *
-     * Weightlifting type.
+     * Trail run type.
      * 
* - * WEIGHTLIFTING = 10; + * TRAIL_RUN = 141; */ - WEIGHTLIFTING(10), + public static final int TRAIL_RUN_VALUE = 141; + /** * * *
-     * Strength training type.
+     * Trampoline type.
      * 
* - * STRENGTH_TRAINING = 11; + * TRAMPOLINE = 119; */ - STRENGTH_TRAINING(11), + public static final int TRAMPOLINE_VALUE = 119; + /** * * *
-     * Other type.
+     * Treadmill type.
      * 
* - * OTHER = 12; + * TREADMILL = 45; */ - OTHER(12), - UNRECOGNIZED(-1), - ; + public static final int TREADMILL_VALUE = 45; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ExerciseType"); - } + /** + * + * + *
+     * Treadmill walk type.
+     * 
+ * + * TREADMILL_WALK = 138; + */ + public static final int TREADMILL_WALK_VALUE = 138; /** * * *
-     * Exercise type is unspecified.
+     * Trx type.
      * 
* - * EXERCISE_TYPE_UNSPECIFIED = 0; + * TRX = 131; */ - public static final int EXERCISE_TYPE_UNSPECIFIED_VALUE = 0; + public static final int TRX_VALUE = 131; /** * * *
-     * Running type.
+     * Ultimate frisbee type.
      * 
* - * RUNNING = 1; + * ULTIMATE_FRISBEE = 112; */ - public static final int RUNNING_VALUE = 1; + public static final int ULTIMATE_FRISBEE_VALUE = 112; + + /** + * + * + *
+     * Unicycling type.
+     * 
+ * + * UNICYCLING = 102; + */ + public static final int UNICYCLING_VALUE = 102; + + /** + * + * + *
+     * Volleyball type.
+     * 
+ * + * VOLLEYBALL = 95; + */ + public static final int VOLLEYBALL_VALUE = 95; + + /** + * + * + *
+     * Volleyball beach type.
+     * 
+ * + * VOLLEYBALL_BEACH = 120; + */ + public static final int VOLLEYBALL_BEACH_VALUE = 120; + + /** + * + * + *
+     * Wakeboarding type.
+     * 
+ * + * WAKEBOARDING = 173; + */ + public static final int WAKEBOARDING_VALUE = 173; /** * @@ -265,78 +3694,89 @@ public enum ExerciseType implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Biking type.
+     * Walk with weights type.
      * 
* - * BIKING = 3; + * WALK_WITH_WEIGHTS = 147; */ - public static final int BIKING_VALUE = 3; + public static final int WALK_WITH_WEIGHTS_VALUE = 147; /** * * *
-     * Swimming type.
+     * Water aerobics type.
      * 
* - * SWIMMING = 4; + * WATER_AEROBICS = 96; */ - public static final int SWIMMING_VALUE = 4; + public static final int WATER_AEROBICS_VALUE = 96; /** * * *
-     * Hiking type.
+     * Water jogging type.
      * 
* - * HIKING = 5; + * WATER_JOGGING = 126; */ - public static final int HIKING_VALUE = 5; + public static final int WATER_JOGGING_VALUE = 126; /** * * *
-     * Yoga type.
+     * Water polo type.
      * 
* - * YOGA = 6; + * WATER_POLO = 97; */ - public static final int YOGA_VALUE = 6; + public static final int WATER_POLO_VALUE = 97; /** * * *
-     * Pilates type.
+     * Water skiing type.
      * 
* - * PILATES = 7; + * WATER_SKIING = 124; */ - public static final int PILATES_VALUE = 7; + public static final int WATER_SKIING_VALUE = 124; /** * * *
-     * Workout type.
+     * Water sport type.
      * 
* - * WORKOUT = 8; + * WATER_SPORT = 98; */ - public static final int WORKOUT_VALUE = 8; + public static final int WATER_SPORT_VALUE = 98; /** * * *
-     * HIIT type.
+     * Water volleyball type.
      * 
* - * HIIT = 9; + * WATER_VOLLEYBALL = 125; */ - public static final int HIIT_VALUE = 9; + public static final int WATER_VOLLEYBALL_VALUE = 125; + + /** + * + * + *
+     * Weeding type.
+     * 
+ * + * WEEDING = 110; + */ + public static final int WEEDING_VALUE = 110; /** * @@ -353,23 +3793,133 @@ public enum ExerciseType implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Strength training type.
+     * Weight machines type.
      * 
* - * STRENGTH_TRAINING = 11; + * WEIGHT_MACHINES = 150; */ - public static final int STRENGTH_TRAINING_VALUE = 11; + public static final int WEIGHT_MACHINES_VALUE = 150; /** * * *
-     * Other type.
+     * Weights type.
      * 
* - * OTHER = 12; + * WEIGHTS = 46; */ - public static final int OTHER_VALUE = 12; + public static final int WEIGHTS_VALUE = 46; + + /** + * + * + *
+     * Wheelchair type.
+     * 
+ * + * WHEELCHAIR = 99; + */ + public static final int WHEELCHAIR_VALUE = 99; + + /** + * + * + *
+     * Windsurfing type.
+     * 
+ * + * WINDSURFING = 174; + */ + public static final int WINDSURFING_VALUE = 174; + + /** + * + * + *
+     * Workout type.
+     * 
+ * + * WORKOUT = 8; + */ + public static final int WORKOUT_VALUE = 8; + + /** + * + * + *
+     * Wrestling type.
+     * 
+ * + * WRESTLING = 100; + */ + public static final int WRESTLING_VALUE = 100; + + /** + * + * + *
+     * Yoga type.
+     * 
+ * + * YOGA = 6; + */ + public static final int YOGA_VALUE = 6; + + /** + * + * + *
+     * Yoga bikram type.
+     * 
+ * + * YOGA_BIKRAM = 132; + */ + public static final int YOGA_BIKRAM_VALUE = 132; + + /** + * + * + *
+     * Yoga hatha type.
+     * 
+ * + * YOGA_HATHA = 133; + */ + public static final int YOGA_HATHA_VALUE = 133; + + /** + * + * + *
+     * Yoga power type.
+     * 
+ * + * YOGA_POWER = 134; + */ + public static final int YOGA_POWER_VALUE = 134; + + /** + * + * + *
+     * Yoga vinyasa type.
+     * 
+ * + * YOGA_VINYASA = 135; + */ + public static final int YOGA_VINYASA_VALUE = 135; + + /** + * + * + *
+     * Zumba type.
+     * 
+ * + * ZUMBA = 136; + */ + public static final int ZUMBA_VALUE = 136; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -397,30 +3947,368 @@ public static ExerciseType forNumber(int value) { switch (value) { case 0: return EXERCISE_TYPE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return WALKING; + case 13: + return AEROBIC_WORKOUT; + case 47: + return ARCHERY; + case 164: + return ASSAULT_BIKE; + case 181: + return BACKPACKING; + case 48: + return BADMINTON; + case 103: + return BALLET; + case 156: + return BALLROOM_DANCE; + case 49: + return BARRE_CLASS; + case 50: + return BASEBALL; + case 51: + return BASKETBALL; case 3: return BIKING; - case 4: - return SWIMMING; + case 180: + return BILLIARDS; + case 149: + return BODY_WEIGHT; + case 14: + return BOOTCAMP; + case 52: + return BOWLING; + case 53: + return BOXING; + case 157: + return BREAKDANCING; + case 54: + return CALISTHENICS; + case 15: + return CANOEING; + case 129: + return CARDIO_SCULPT; + case 140: + return CARDIO_WORKOUT; + case 108: + return CARPENTRY; + case 165: + return CHEERLEADING; + case 16: + return CIRCUIT_TRAINING; + case 105: + return CLEANING; + case 55: + return CLIMBING; + case 17: + return CORE_TRAINING; + case 56: + return CRICKET; + case 111: + return CROQUET; + case 18: + return CROSS_COUNTRY_SKI; + case 57: + return CROSS_TRAINING; + case 19: + return CROSSFIT; + case 58: + return CURLING; + case 20: + return DANCING; + case 59: + return DIVING; + case 152: + return ELECTRIC_BIKE; + case 168: + return ELECTRIC_SCOOTER; + case 21: + return ELLIPTICAL; + case 60: + return EQUESTRIAN_SPORTS; + case 61: + return EXERCISE_CLASS; + case 62: + return FENCING; + case 113: + return FIELD_HOCKEY; + case 63: + return FISHING; + case 64: + return FITNESS_GAMING; + case 175: + return FOILING; + case 65: + return FOOTBALL_AMERICAN; + case 66: + return FOOTBALL_AUSTRALIAN; + case 148: + return FREE_WEIGHTS; + case 67: + return FRISBEE_PLAYING_GENERAL; + case 68: + return FUNCTIONAL_STRENGTH_TRAINING; + case 107: + return GARDENING; + case 22: + return GOLF; + case 69: + return GYMNASTICS; + case 70: + return HANDBALL; + case 71: + return HAND_CYCLING; + case 9: + return HIIT; case 5: return HIKING; - case 6: - return YOGA; + case 158: + return HIP_HOP; + case 72: + return HOCKEY; + case 109: + return HOEING; + case 137: + return HOUSEHOLD_CHORES; + case 73: + return HUNTING; + case 127: + return ICE_SKATING; + case 142: + return INCLINE_RUN; + case 146: + return INCLINE_WALK; + case 23: + return INDOOR_CLIMBING; + case 24: + return INTERVAL_WORKOUT; + case 154: + return JAZZ_DANCE; + case 160: + return JIU_JITSU; + case 74: + return JUMPING_ROPE; + case 159: + return KARATE; + case 25: + return KAYAKING; + case 26: + return KICKBOXING; + case 172: + return KITESURFING; + case 75: + return LACROSSE; + case 27: + return MARTIAL_ARTS; + case 28: + return MEDITATE; + case 153: + return MODERN_DANCE; + case 114: + return MOTOCROSS; + case 121: + return MOTORCYCLE; + case 128: + return MOUNTAIN_BIKE; + case 106: + return MOWING_LAWN; + case 162: + return MUAY_THAI; + case 76: + return MULTISPORT; + case 163: + return MUSICAL_PERFORMANCE; + case 145: + return NORDIC_WALKING; + case 115: + return ORIENTEERING; + case 12: + return OTHER; + case 29: + return OUTDOOR_BIKE; + case 30: + return OUTDOOR_WORKOUT; + case 31: + return PADDLEBOARDING; + case 176: + return PADEL; + case 170: + return PAINTING; + case 78: + return PARAGLIDING; + case 166: + return PARKOUR; + case 79: + return PICKELBALL; case 7: return PILATES; - case 8: - return WORKOUT; - case 9: - return HIIT; - case 10: - return WEIGHTLIFTING; + case 116: + return POLO; + case 32: + return POWERLIFTING; + case 143: + return POWER_WALKING; + case 169: + return RACKET_SPORTS; + case 80: + return RACQUETBALL; + case 151: + return RESISTANCE_BANDS; + case 123: + return ROCK_CLIMBING; + case 33: + return ROLLERBLADING; + case 118: + return ROLLER_SKATING; + case 81: + return ROWING; + case 34: + return ROWING_MACHINE; + case 144: + return RUCKING; + case 82: + return RUGBY; + case 1: + return RUNNING; + case 83: + return SAILING; + case 167: + return SCOOTERING; + case 84: + return SCUBA_DIVING; + case 104: + return SHOOTING; + case 171: + return SHOVELING; + case 117: + return SKATEBOARDING; + case 35: + return SKATING; + case 36: + return SKIING; + case 182: + return SKYDIVING; + case 37: + return SNORKELING; + case 38: + return SNOWBOARDING; + case 179: + return SNOWMOBILING; + case 85: + return SNOWSHOEING; + case 86: + return SNOW_SPORT; + case 87: + return SOCCER; + case 88: + return SOFTBALL; + case 178: + return SPEED_SKATING; + case 39: + return SPINNING; + case 40: + return SPORT; + case 89: + return SQUASH; + case 41: + return STAIRCLIMBER; + case 139: + return STATIONARY_BIKE; + case 90: + return STEP_TRAINING; case 11: return STRENGTH_TRAINING; - case 12: - return OTHER; + case 42: + return STRETCHING; + case 122: + return STROLLER_WALK; + case 43: + return SURFING; + case 4: + return SWIMMING; + case 91: + return SWIMMING_OPEN_WATER; + case 101: + return SWIMMING_POOL; + case 177: + return SYNCHRONIZED_SWIMMING; + case 130: + return TABATA_WORKOUT; + case 92: + return TABLE_TENNIS; + case 161: + return TAEKWONDO; + case 93: + return TAI_CHI; + case 155: + return TANGO; + case 44: + return TENNIS; + case 94: + return TRACK_AND_FIELD; + case 141: + return TRAIL_RUN; + case 119: + return TRAMPOLINE; + case 45: + return TREADMILL; + case 138: + return TREADMILL_WALK; + case 131: + return TRX; + case 112: + return ULTIMATE_FRISBEE; + case 102: + return UNICYCLING; + case 95: + return VOLLEYBALL; + case 120: + return VOLLEYBALL_BEACH; + case 173: + return WAKEBOARDING; + case 2: + return WALKING; + case 147: + return WALK_WITH_WEIGHTS; + case 96: + return WATER_AEROBICS; + case 126: + return WATER_JOGGING; + case 97: + return WATER_POLO; + case 124: + return WATER_SKIING; + case 98: + return WATER_SPORT; + case 125: + return WATER_VOLLEYBALL; + case 110: + return WEEDING; + case 10: + return WEIGHTLIFTING; + case 150: + return WEIGHT_MACHINES; + case 46: + return WEIGHTS; + case 99: + return WHEELCHAIR; + case 174: + return WINDSURFING; + case 8: + return WORKOUT; + case 100: + return WRESTLING; + case 6: + return YOGA; + case 132: + return YOGA_BIKRAM; + case 133: + return YOGA_HATHA; + case 134: + return YOGA_POWER; + case 135: + return YOGA_VINYASA; + case 136: + return ZUMBA; default: return null; } @@ -6203,7 +10091,12 @@ public com.google.devicesandservices.health.v4.Exercise.ExerciseMetadata getExer * * *
-   * Required. Exercise display name.
+   * Required. The localized, human-readable name of the exercise.
+   * For all exercise types other than `OTHER`, the system ignores client
+   * input and overrides this field with a generated name based on
+   * `exercise_type` (e.g., "Walking" for `WALKING`). If `exercise_type` is
+   * `OTHER`, this field can contain the user's custom, free-form display
+   * name.
    * 
* * string display_name = 12 [(.google.api.field_behavior) = REQUIRED]; @@ -6227,7 +10120,12 @@ public java.lang.String getDisplayName() { * * *
-   * Required. Exercise display name.
+   * Required. The localized, human-readable name of the exercise.
+   * For all exercise types other than `OTHER`, the system ignores client
+   * input and overrides this field with a generated name based on
+   * `exercise_type` (e.g., "Walking" for `WALKING`). If `exercise_type` is
+   * `OTHER`, this field can contain the user's custom, free-form display
+   * name.
    * 
* * string display_name = 12 [(.google.api.field_behavior) = REQUIRED]; @@ -9437,7 +13335,12 @@ public Builder clearExerciseMetadata() { * * *
-     * Required. Exercise display name.
+     * Required. The localized, human-readable name of the exercise.
+     * For all exercise types other than `OTHER`, the system ignores client
+     * input and overrides this field with a generated name based on
+     * `exercise_type` (e.g., "Walking" for `WALKING`). If `exercise_type` is
+     * `OTHER`, this field can contain the user's custom, free-form display
+     * name.
      * 
* * string display_name = 12 [(.google.api.field_behavior) = REQUIRED]; @@ -9460,7 +13363,12 @@ public java.lang.String getDisplayName() { * * *
-     * Required. Exercise display name.
+     * Required. The localized, human-readable name of the exercise.
+     * For all exercise types other than `OTHER`, the system ignores client
+     * input and overrides this field with a generated name based on
+     * `exercise_type` (e.g., "Walking" for `WALKING`). If `exercise_type` is
+     * `OTHER`, this field can contain the user's custom, free-form display
+     * name.
      * 
* * string display_name = 12 [(.google.api.field_behavior) = REQUIRED]; @@ -9483,7 +13391,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Required. Exercise display name.
+     * Required. The localized, human-readable name of the exercise.
+     * For all exercise types other than `OTHER`, the system ignores client
+     * input and overrides this field with a generated name based on
+     * `exercise_type` (e.g., "Walking" for `WALKING`). If `exercise_type` is
+     * `OTHER`, this field can contain the user's custom, free-form display
+     * name.
      * 
* * string display_name = 12 [(.google.api.field_behavior) = REQUIRED]; @@ -9505,7 +13418,12 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Required. Exercise display name.
+     * Required. The localized, human-readable name of the exercise.
+     * For all exercise types other than `OTHER`, the system ignores client
+     * input and overrides this field with a generated name based on
+     * `exercise_type` (e.g., "Walking" for `WALKING`). If `exercise_type` is
+     * `OTHER`, this field can contain the user's custom, free-form display
+     * name.
      * 
* * string display_name = 12 [(.google.api.field_behavior) = REQUIRED]; @@ -9523,7 +13441,12 @@ public Builder clearDisplayName() { * * *
-     * Required. Exercise display name.
+     * Required. The localized, human-readable name of the exercise.
+     * For all exercise types other than `OTHER`, the system ignores client
+     * input and overrides this field with a generated name based on
+     * `exercise_type` (e.g., "Walking" for `WALKING`). If `exercise_type` is
+     * `OTHER`, this field can contain the user's custom, free-form display
+     * name.
      * 
* * string display_name = 12 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ExerciseOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ExerciseOrBuilder.java index 57cbee0e60fd..e1b5599a9920 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ExerciseOrBuilder.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ExerciseOrBuilder.java @@ -436,7 +436,12 @@ com.google.devicesandservices.health.v4.Exercise.SplitSummaryOrBuilder getSplitS * * *
-   * Required. Exercise display name.
+   * Required. The localized, human-readable name of the exercise.
+   * For all exercise types other than `OTHER`, the system ignores client
+   * input and overrides this field with a generated name based on
+   * `exercise_type` (e.g., "Walking" for `WALKING`). If `exercise_type` is
+   * `OTHER`, this field can contain the user's custom, free-form display
+   * name.
    * 
* * string display_name = 12 [(.google.api.field_behavior) = REQUIRED]; @@ -449,7 +454,12 @@ com.google.devicesandservices.health.v4.Exercise.SplitSummaryOrBuilder getSplitS * * *
-   * Required. Exercise display name.
+   * Required. The localized, human-readable name of the exercise.
+   * For all exercise types other than `OTHER`, the system ignores client
+   * input and overrides this field with a generated name based on
+   * `exercise_type` (e.g., "Walking" for `WALKING`). If `exercise_type` is
+   * `OTHER`, this field can contain the user's custom, free-form display
+   * name.
    * 
* * string display_name = 12 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/HealthProfileProto.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/HealthProfileProto.java index 6c899c7cce22..c4cc6baeb856 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/HealthProfileProto.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/HealthProfileProto.java @@ -264,7 +264,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ListPairedDevicesResponse\022I\n" + "\016paired_devices\030\001 \003(\01321.g" + "oogle.devicesandservices.health.v4.PairedDevice\022\027\n" - + "\017next_page_token\030\002 \001(\t2\252\017\n" + + "\017next_page_token\030\002 \001(\t2\373\021\n" + "\024HealthProfileService\022\235\001\n\n" + "GetProfile\0226.google.devicesandservices.health.v4.GetProfil" + "eRequest\032,.google.devicesandservices.hea" @@ -293,18 +293,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ListPairedDevices\022=.google.devicesandservices.health" + ".v4.ListPairedDevicesRequest\032>.google.devicesandservices.health.v4.ListPairedDev" + "icesResponse\"3\332A\006parent\202\323\344\223\002$\022\"/v4/{pare" - + "nt=users/*}/pairedDevices\032\351\003\312A\025health.go" - + "ogleapis.com\322A\315\003https://www.googleapis.c" + + "nt=users/*}/pairedDevices\032\272\006\312A\025health.go" + + "ogleapis.com\322A\236\006https://www.googleapis.c" + "om/auth/googlehealth.activity_and_fitness.readonly,https://www.googleapis.com/au" + "th/googlehealth.ecg.readonly,https://www.googleapis.com/auth/googlehealth.health" + "_metrics_and_measurements.readonly,https://www.googleapis.com/auth/googlehealth." - + "irn.readonly,https://www.googleapis.com/auth/googlehealth.profile.readonly,https" - + "://www.googleapis.com/auth/googlehealth.settings.readonly,https://www.googleapis" - + ".com/auth/googlehealth.sleep.readonlyB\210\002\n" - + "\'com.google.devicesandservices.health.v4B\022HealthProfileProtoP\001ZRgoogle.golang.o" - + "rg/genproto/googleapis/devicesandservices/health/apiv4main;healthpb\252\002#Google.Dev" - + "icesAndServices.Health.V4\312\002#Google\\Devic" - + "esAndServices\\Health\\V4\352\002&Google::DevicesAndServices::Health::V4b\006proto3" + + "irn.readonly,https://www.googleapis.com/auth/googlehealth.logged_symptoms.readon" + + "ly,https://www.googleapis.com/auth/googlehealth.mindfulness.readonly,https://www" + + ".googleapis.com/auth/googlehealth.profile.readonly,https://www.googleapis.com/au" + + "th/googlehealth.profile.writeonly,https://www.googleapis.com/auth/googlehealth.r" + + "eproductive_health.readonly,https://www.googleapis.com/auth/googlehealth.setting" + + "s.readonly,https://www.googleapis.com/auth/googlehealth.settings.writeonly,https" + + "://www.googleapis.com/auth/googlehealth.sleep.readonlyB\204\002\n" + + "\'com.google.devicesandservices.health.v4B\022HealthProfileProtoP\001" + + "ZNgoogle.golang.org/genproto/googleapis/devicesandservices/health/apiv4;healthpb" + + "\252\002#Google.DevicesAndServices.Health.V4\312\002" + + "#Google\\DevicesAndServices\\Health\\V4\352\002&G" + + "oogle::DevicesAndServices::Health::V4b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ListSubscriptionsRequest.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ListSubscriptionsRequest.java index 743d89c99b17..d62c54625798 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ListSubscriptionsRequest.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ListSubscriptionsRequest.java @@ -153,7 +153,7 @@ public com.google.protobuf.ByteString getParentBytes() { * - `data_type` * * The `user` identifier (e.g., `user1` in `users/user1`) refers to the public - * `healthUserId` + * `health_user_id` * * Example: user = "users/user1" * Example: user = "users/user1" OR user = "users/user2" @@ -189,7 +189,7 @@ public java.lang.String getFilter() { * - `data_type` * * The `user` identifier (e.g., `user1` in `users/user1`) refers to the public - * `healthUserId` + * `health_user_id` * * Example: user = "users/user1" * Example: user = "users/user1" OR user = "users/user2" @@ -834,7 +834,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * - `data_type` * * The `user` identifier (e.g., `user1` in `users/user1`) refers to the public - * `healthUserId` + * `health_user_id` * * Example: user = "users/user1" * Example: user = "users/user1" OR user = "users/user2" @@ -869,7 +869,7 @@ public java.lang.String getFilter() { * - `data_type` * * The `user` identifier (e.g., `user1` in `users/user1`) refers to the public - * `healthUserId` + * `health_user_id` * * Example: user = "users/user1" * Example: user = "users/user1" OR user = "users/user2" @@ -904,7 +904,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * - `data_type` * * The `user` identifier (e.g., `user1` in `users/user1`) refers to the public - * `healthUserId` + * `health_user_id` * * Example: user = "users/user1" * Example: user = "users/user1" OR user = "users/user2" @@ -938,7 +938,7 @@ public Builder setFilter(java.lang.String value) { * - `data_type` * * The `user` identifier (e.g., `user1` in `users/user1`) refers to the public - * `healthUserId` + * `health_user_id` * * Example: user = "users/user1" * Example: user = "users/user1" OR user = "users/user2" @@ -968,7 +968,7 @@ public Builder clearFilter() { * - `data_type` * * The `user` identifier (e.g., `user1` in `users/user1`) refers to the public - * `healthUserId` + * `health_user_id` * * Example: user = "users/user1" * Example: user = "users/user1" OR user = "users/user2" diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ListSubscriptionsRequestOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ListSubscriptionsRequestOrBuilder.java index 43779fee5583..22870c5d127c 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ListSubscriptionsRequestOrBuilder.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ListSubscriptionsRequestOrBuilder.java @@ -75,7 +75,7 @@ public interface ListSubscriptionsRequestOrBuilder * - `data_type` * * The `user` identifier (e.g., `user1` in `users/user1`) refers to the public - * `healthUserId` + * `health_user_id` * * Example: user = "users/user1" * Example: user = "users/user1" OR user = "users/user2" @@ -100,7 +100,7 @@ public interface ListSubscriptionsRequestOrBuilder * - `data_type` * * The `user` identifier (e.g., `user1` in `users/user1`) refers to the public - * `healthUserId` + * `health_user_id` * * Example: user = "users/user1" * Example: user = "users/user1" OR user = "users/user2" diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/MedicalDeviceInfoProto.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/MedicalDeviceInfoProto.java index 1fb26d3a0a24..f69f04c9a6df 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/MedicalDeviceInfoProto.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/MedicalDeviceInfoProto.java @@ -61,12 +61,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017service_version\030\002 \001(\tB\003\340A\003\022\035\n" + "\020firmware_version\030\003 \001(\tB\003\340A\003\022\034\n" + "\017feature_version\030\004 \001(\tB\003\340A\003\022\031\n" - + "\014device_model\030\005 \001(\tB\003\340A\003B\214\002\n" + + "\014device_model\030\005 \001(\tB\003\340A\003B\210\002\n" + "\'com.google.devicesandservices.health.v4B\026MedicalDe" - + "viceInfoProtoP\001ZRgoogle.golang.org/genproto/googleapis/devicesandservices/health" - + "/apiv4main;healthpb\252\002#Google.DevicesAndS" - + "ervices.Health.V4\312\002#Google\\DevicesAndSer" - + "vices\\Health\\V4\352\002&Google::DevicesAndServices::Health::V4b\006proto3" + + "viceInfoProtoP\001ZNgoogle.golang.org/genproto/googleapis/devicesandservices/health" + + "/apiv4;healthpb\252\002#Google.DevicesAndServi" + + "ces.Health.V4\312\002#Google\\DevicesAndService" + + "s\\Health\\V4\352\002&Google::DevicesAndServices::Health::V4b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/MenstrualPeriod.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/MenstrualPeriod.java new file mode 100644 index 000000000000..84064ef8c123 --- /dev/null +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/MenstrualPeriod.java @@ -0,0 +1,921 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/devicesandservices/health/v4/data_model.proto +// Protobuf Java Version: 4.33.6 + +package com.google.devicesandservices.health.v4; + +/** + * + * + *
+ * Menstrual period record.
+ * 
+ * + * Protobuf type {@code google.devicesandservices.health.v4.MenstrualPeriod} + */ +@com.google.protobuf.Generated +public final class MenstrualPeriod extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.devicesandservices.health.v4.MenstrualPeriod) + MenstrualPeriodOrBuilder { + 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= */ "", + "MenstrualPeriod"); + } + + // Use MenstrualPeriod.newBuilder() to construct. + private MenstrualPeriod(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MenstrualPeriod() { + notes_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_MenstrualPeriod_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_MenstrualPeriod_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devicesandservices.health.v4.MenstrualPeriod.class, + com.google.devicesandservices.health.v4.MenstrualPeriod.Builder.class); + } + + private int bitField0_; + public static final int INTERVAL_FIELD_NUMBER = 2; + private com.google.devicesandservices.health.v4.ObservationTimeInterval interval_; + + /** + * + * + *
+   * Required. Observed interval.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interval field is set. + */ + @java.lang.Override + public boolean hasInterval() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Observed interval.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interval. + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.ObservationTimeInterval getInterval() { + return interval_ == null + ? com.google.devicesandservices.health.v4.ObservationTimeInterval.getDefaultInstance() + : interval_; + } + + /** + * + * + *
+   * Required. Observed interval.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.ObservationTimeIntervalOrBuilder + getIntervalOrBuilder() { + return interval_ == null + ? com.google.devicesandservices.health.v4.ObservationTimeInterval.getDefaultInstance() + : interval_; + } + + public static final int NOTES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object notes_ = ""; + + /** + * + * + *
+   * Optional. Standard free-form notes captured at manual logging.
+   * 
+ * + * string notes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The notes. + */ + @java.lang.Override + public java.lang.String getNotes() { + java.lang.Object ref = notes_; + 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(); + notes_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Standard free-form notes captured at manual logging.
+   * 
+ * + * string notes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for notes. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNotesBytes() { + java.lang.Object ref = notes_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + notes_ = 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(2, getInterval()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(notes_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, notes_); + } + 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(2, getInterval()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(notes_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, notes_); + } + 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.devicesandservices.health.v4.MenstrualPeriod)) { + return super.equals(obj); + } + com.google.devicesandservices.health.v4.MenstrualPeriod other = + (com.google.devicesandservices.health.v4.MenstrualPeriod) obj; + + if (hasInterval() != other.hasInterval()) return false; + if (hasInterval()) { + if (!getInterval().equals(other.getInterval())) return false; + } + if (!getNotes().equals(other.getNotes())) 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 (hasInterval()) { + hash = (37 * hash) + INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getInterval().hashCode(); + } + hash = (37 * hash) + NOTES_FIELD_NUMBER; + hash = (53 * hash) + getNotes().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devicesandservices.health.v4.MenstrualPeriod parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devicesandservices.health.v4.MenstrualPeriod parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devicesandservices.health.v4.MenstrualPeriod parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devicesandservices.health.v4.MenstrualPeriod 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.devicesandservices.health.v4.MenstrualPeriod parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devicesandservices.health.v4.MenstrualPeriod parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devicesandservices.health.v4.MenstrualPeriod parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.devicesandservices.health.v4.MenstrualPeriod 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.devicesandservices.health.v4.MenstrualPeriod parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devicesandservices.health.v4.MenstrualPeriod 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.devicesandservices.health.v4.MenstrualPeriod parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.devicesandservices.health.v4.MenstrualPeriod 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.devicesandservices.health.v4.MenstrualPeriod 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; + } + + /** + * + * + *
+   * Menstrual period record.
+   * 
+ * + * Protobuf type {@code google.devicesandservices.health.v4.MenstrualPeriod} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devicesandservices.health.v4.MenstrualPeriod) + com.google.devicesandservices.health.v4.MenstrualPeriodOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_MenstrualPeriod_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_MenstrualPeriod_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devicesandservices.health.v4.MenstrualPeriod.class, + com.google.devicesandservices.health.v4.MenstrualPeriod.Builder.class); + } + + // Construct using com.google.devicesandservices.health.v4.MenstrualPeriod.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetIntervalFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + interval_ = null; + if (intervalBuilder_ != null) { + intervalBuilder_.dispose(); + intervalBuilder_ = null; + } + notes_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_MenstrualPeriod_descriptor; + } + + @java.lang.Override + public com.google.devicesandservices.health.v4.MenstrualPeriod getDefaultInstanceForType() { + return com.google.devicesandservices.health.v4.MenstrualPeriod.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devicesandservices.health.v4.MenstrualPeriod build() { + com.google.devicesandservices.health.v4.MenstrualPeriod result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devicesandservices.health.v4.MenstrualPeriod buildPartial() { + com.google.devicesandservices.health.v4.MenstrualPeriod result = + new com.google.devicesandservices.health.v4.MenstrualPeriod(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.devicesandservices.health.v4.MenstrualPeriod result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.interval_ = intervalBuilder_ == null ? interval_ : intervalBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.notes_ = notes_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devicesandservices.health.v4.MenstrualPeriod) { + return mergeFrom((com.google.devicesandservices.health.v4.MenstrualPeriod) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devicesandservices.health.v4.MenstrualPeriod other) { + if (other == com.google.devicesandservices.health.v4.MenstrualPeriod.getDefaultInstance()) + return this; + if (other.hasInterval()) { + mergeInterval(other.getInterval()); + } + if (!other.getNotes().isEmpty()) { + notes_ = other.notes_; + 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: + { + input.readMessage( + internalGetIntervalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 34: + { + notes_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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.devicesandservices.health.v4.ObservationTimeInterval interval_; + private com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.ObservationTimeInterval, + com.google.devicesandservices.health.v4.ObservationTimeInterval.Builder, + com.google.devicesandservices.health.v4.ObservationTimeIntervalOrBuilder> + intervalBuilder_; + + /** + * + * + *
+     * Required. Observed interval.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interval field is set. + */ + public boolean hasInterval() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. Observed interval.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interval. + */ + public com.google.devicesandservices.health.v4.ObservationTimeInterval getInterval() { + if (intervalBuilder_ == null) { + return interval_ == null + ? com.google.devicesandservices.health.v4.ObservationTimeInterval.getDefaultInstance() + : interval_; + } else { + return intervalBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Observed interval.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterval( + com.google.devicesandservices.health.v4.ObservationTimeInterval value) { + if (intervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interval_ = value; + } else { + intervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Observed interval.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterval( + com.google.devicesandservices.health.v4.ObservationTimeInterval.Builder builderForValue) { + if (intervalBuilder_ == null) { + interval_ = builderForValue.build(); + } else { + intervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Observed interval.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInterval( + com.google.devicesandservices.health.v4.ObservationTimeInterval value) { + if (intervalBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && interval_ != null + && interval_ + != com.google.devicesandservices.health.v4.ObservationTimeInterval + .getDefaultInstance()) { + getIntervalBuilder().mergeFrom(value); + } else { + interval_ = value; + } + } else { + intervalBuilder_.mergeFrom(value); + } + if (interval_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Observed interval.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInterval() { + bitField0_ = (bitField0_ & ~0x00000001); + interval_ = null; + if (intervalBuilder_ != null) { + intervalBuilder_.dispose(); + intervalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Observed interval.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.devicesandservices.health.v4.ObservationTimeInterval.Builder + getIntervalBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetIntervalFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Observed interval.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.devicesandservices.health.v4.ObservationTimeIntervalOrBuilder + getIntervalOrBuilder() { + if (intervalBuilder_ != null) { + return intervalBuilder_.getMessageOrBuilder(); + } else { + return interval_ == null + ? com.google.devicesandservices.health.v4.ObservationTimeInterval.getDefaultInstance() + : interval_; + } + } + + /** + * + * + *
+     * Required. Observed interval.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.ObservationTimeInterval, + com.google.devicesandservices.health.v4.ObservationTimeInterval.Builder, + com.google.devicesandservices.health.v4.ObservationTimeIntervalOrBuilder> + internalGetIntervalFieldBuilder() { + if (intervalBuilder_ == null) { + intervalBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.ObservationTimeInterval, + com.google.devicesandservices.health.v4.ObservationTimeInterval.Builder, + com.google.devicesandservices.health.v4.ObservationTimeIntervalOrBuilder>( + getInterval(), getParentForChildren(), isClean()); + interval_ = null; + } + return intervalBuilder_; + } + + private java.lang.Object notes_ = ""; + + /** + * + * + *
+     * Optional. Standard free-form notes captured at manual logging.
+     * 
+ * + * string notes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The notes. + */ + public java.lang.String getNotes() { + java.lang.Object ref = notes_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + notes_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Standard free-form notes captured at manual logging.
+     * 
+ * + * string notes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for notes. + */ + public com.google.protobuf.ByteString getNotesBytes() { + java.lang.Object ref = notes_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + notes_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Standard free-form notes captured at manual logging.
+     * 
+ * + * string notes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The notes to set. + * @return This builder for chaining. + */ + public Builder setNotes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + notes_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Standard free-form notes captured at manual logging.
+     * 
+ * + * string notes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNotes() { + notes_ = getDefaultInstance().getNotes(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Standard free-form notes captured at manual logging.
+     * 
+ * + * string notes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for notes to set. + * @return This builder for chaining. + */ + public Builder setNotesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + notes_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.devicesandservices.health.v4.MenstrualPeriod) + } + + // @@protoc_insertion_point(class_scope:google.devicesandservices.health.v4.MenstrualPeriod) + private static final com.google.devicesandservices.health.v4.MenstrualPeriod DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devicesandservices.health.v4.MenstrualPeriod(); + } + + public static com.google.devicesandservices.health.v4.MenstrualPeriod getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MenstrualPeriod 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.devicesandservices.health.v4.MenstrualPeriod getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/MenstrualPeriodOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/MenstrualPeriodOrBuilder.java new file mode 100644 index 000000000000..21d292dfb989 --- /dev/null +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/MenstrualPeriodOrBuilder.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/devicesandservices/health/v4/data_model.proto +// Protobuf Java Version: 4.33.6 + +package com.google.devicesandservices.health.v4; + +@com.google.protobuf.Generated +public interface MenstrualPeriodOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devicesandservices.health.v4.MenstrualPeriod) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Observed interval.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the interval field is set. + */ + boolean hasInterval(); + + /** + * + * + *
+   * Required. Observed interval.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The interval. + */ + com.google.devicesandservices.health.v4.ObservationTimeInterval getInterval(); + + /** + * + * + *
+   * Required. Observed interval.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationTimeInterval interval = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.devicesandservices.health.v4.ObservationTimeIntervalOrBuilder getIntervalOrBuilder(); + + /** + * + * + *
+   * Optional. Standard free-form notes captured at manual logging.
+   * 
+ * + * string notes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The notes. + */ + java.lang.String getNotes(); + + /** + * + * + *
+   * Optional. Standard free-form notes captured at manual logging.
+   * 
+ * + * string notes = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for notes. + */ + com.google.protobuf.ByteString getNotesBytes(); +} diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Moods.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Moods.java new file mode 100644 index 000000000000..625276d6fa13 --- /dev/null +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Moods.java @@ -0,0 +1,3196 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/devicesandservices/health/v4/data_model.proto +// Protobuf Java Version: 4.33.6 + +package com.google.devicesandservices.health.v4; + +/** + * + * + *
+ * Moods record.
+ * 
+ * + * Protobuf type {@code google.devicesandservices.health.v4.Moods} + */ +@com.google.protobuf.Generated +public final class Moods extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.devicesandservices.health.v4.Moods) + MoodsOrBuilder { + 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= */ "", + "Moods"); + } + + // Use Moods.newBuilder() to construct. + private Moods(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Moods() { + moods_ = emptyIntList(); + valences_ = emptyIntList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_Moods_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_Moods_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devicesandservices.health.v4.Moods.class, + com.google.devicesandservices.health.v4.Moods.Builder.class); + } + + /** + * + * + *
+   * The mood.
+   * 
+ * + * Protobuf enum {@code google.devicesandservices.health.v4.Moods.Mood} + */ + public enum Mood implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified mood.
+     * 
+ * + * MOOD_UNSPECIFIED = 0; + */ + MOOD_UNSPECIFIED(0), + /** + * + * + *
+     * Amazed.
+     * 
+ * + * AMAZED = 1; + */ + AMAZED(1), + /** + * + * + *
+     * Amused.
+     * 
+ * + * AMUSED = 2; + */ + AMUSED(2), + /** + * + * + *
+     * Angry.
+     * 
+ * + * ANGRY = 3; + */ + ANGRY(3), + /** + * + * + *
+     * Annoyed.
+     * 
+ * + * ANNOYED = 4; + */ + ANNOYED(4), + /** + * + * + *
+     * Anxious.
+     * 
+ * + * ANXIOUS = 5; + */ + ANXIOUS(5), + /** + * + * + *
+     * Happy.
+     * 
+ * + * HAPPY = 6; + */ + HAPPY(6), + /** + * + * + *
+     * Content.
+     * 
+ * + * CONTENT = 7; + */ + CONTENT(7), + /** + * + * + *
+     * Sad.
+     * 
+ * + * SAD = 8; + */ + SAD(8), + /** + * + * + *
+     * Worried.
+     * 
+ * + * WORRIED = 9; + */ + WORRIED(9), + /** + * + * + *
+     * Frustrated.
+     * 
+ * + * FRUSTRATED = 10; + */ + FRUSTRATED(10), + /** + * + * + *
+     * Excited.
+     * 
+ * + * EXCITED = 11; + */ + EXCITED(11), + /** + * + * + *
+     * Calm.
+     * 
+ * + * CALM = 12; + */ + CALM(12), + /** + * + * + *
+     * Stressed.
+     * 
+ * + * STRESSED = 13; + */ + STRESSED(13), + /** + * + * + *
+     * Ashamed.
+     * 
+ * + * ASHAMED = 14; + */ + ASHAMED(14), + /** + * + * + *
+     * Brave.
+     * 
+ * + * BRAVE = 15; + */ + BRAVE(15), + /** + * + * + *
+     * Confident.
+     * 
+ * + * CONFIDENT = 16; + */ + CONFIDENT(16), + /** + * + * + *
+     * Disappointed.
+     * 
+ * + * DISAPPOINTED = 17; + */ + DISAPPOINTED(17), + /** + * + * + *
+     * Discouraged.
+     * 
+ * + * DISCOURAGED = 18; + */ + DISCOURAGED(18), + /** + * + * + *
+     * Disgusted.
+     * 
+ * + * DISGUSTED = 19; + */ + DISGUSTED(19), + /** + * + * + *
+     * Drained.
+     * 
+ * + * DRAINED = 20; + */ + DRAINED(20), + /** + * + * + *
+     * Embarrassed.
+     * 
+ * + * EMBARRASSED = 21; + */ + EMBARRASSED(21), + /** + * + * + *
+     * Grateful.
+     * 
+ * + * GRATEFUL = 22; + */ + GRATEFUL(22), + /** + * + * + *
+     * Guilty.
+     * 
+ * + * GUILTY = 23; + */ + GUILTY(23), + /** + * + * + *
+     * Hopeful.
+     * 
+ * + * HOPEFUL = 24; + */ + HOPEFUL(24), + /** + * + * + *
+     * Hopeless.
+     * 
+ * + * HOPELESS = 25; + */ + HOPELESS(25), + /** + * + * + *
+     * Indifferent.
+     * 
+ * + * INDIFFERENT = 26; + */ + INDIFFERENT(26), + /** + * + * + *
+     * Irritated.
+     * 
+ * + * IRRITATED = 27; + */ + IRRITATED(27), + /** + * + * + *
+     * Jealous.
+     * 
+ * + * JEALOUS = 28; + */ + JEALOUS(28), + /** + * + * + *
+     * Joyful.
+     * 
+ * + * JOYFUL = 29; + */ + JOYFUL(29), + /** + * + * + *
+     * Lonely.
+     * 
+ * + * LONELY = 30; + */ + LONELY(30), + /** + * + * + *
+     * Overwhelmed.
+     * 
+ * + * OVERWHELMED = 31; + */ + OVERWHELMED(31), + /** + * + * + *
+     * Passionate.
+     * 
+ * + * PASSIONATE = 32; + */ + PASSIONATE(32), + /** + * + * + *
+     * Peaceful.
+     * 
+ * + * PEACEFUL = 33; + */ + PEACEFUL(33), + /** + * + * + *
+     * Proud.
+     * 
+ * + * PROUD = 34; + */ + PROUD(34), + /** + * + * + *
+     * Relieved.
+     * 
+ * + * RELIEVED = 35; + */ + RELIEVED(35), + /** + * + * + *
+     * Satisfied.
+     * 
+ * + * SATISFIED = 36; + */ + SATISFIED(36), + /** + * + * + *
+     * Scared.
+     * 
+ * + * SCARED = 37; + */ + SCARED(37), + /** + * + * + *
+     * Surprised.
+     * 
+ * + * SURPRISED = 38; + */ + SURPRISED(38), + /** + * + * + *
+     * Energized.
+     * 
+ * + * ENERGIZED = 39; + */ + ENERGIZED(39), + /** + * + * + *
+     * Fatigued.
+     * 
+ * + * FATIGUED = 40; + */ + FATIGUED(40), + /** + * + * + *
+     * Very calm.
+     * 
+ * + * VERY_CALM = 41; + */ + VERY_CALM(41), + /** + * + * + *
+     * Very stressed.
+     * 
+ * + * VERY_STRESSED = 42; + */ + VERY_STRESSED(42), + /** + * + * + *
+     * Neutral.
+     * 
+ * + * NEUTRAL = 43; + */ + NEUTRAL(43), + /** + * + * + *
+     * Afraid.
+     * 
+ * + * AFRAID = 44; + */ + AFRAID(44), + /** + * + * + *
+     * Hurting.
+     * 
+ * + * HURTING = 45; + */ + HURTING(45), + /** + * + * + *
+     * Bored.
+     * 
+ * + * BORED = 46; + */ + BORED(46), + /** + * + * + *
+     * Bitter.
+     * 
+ * + * BITTER = 47; + */ + BITTER(47), + /** + * + * + *
+     * Envious.
+     * 
+ * + * ENVIOUS = 48; + */ + ENVIOUS(48), + /** + * + * + *
+     * Confused.
+     * 
+ * + * CONFUSED = 49; + */ + CONFUSED(49), + /** + * + * + *
+     * Curious.
+     * 
+ * + * CURIOUS = 50; + */ + CURIOUS(50), + /** + * + * + *
+     * Awestruck.
+     * 
+ * + * AWESTRUCK = 51; + */ + AWESTRUCK(51), + /** + * + * + *
+     * Inspired.
+     * 
+ * + * INSPIRED = 52; + */ + INSPIRED(52), + /** + * + * + *
+     * Longing.
+     * 
+ * + * LONGING = 53; + */ + LONGING(53), + /** + * + * + *
+     * Accomplished.
+     * 
+ * + * ACCOMPLISHED = 54; + */ + ACCOMPLISHED(54), + /** + * + * + *
+     * Loving.
+     * 
+ * + * LOVING = 55; + */ + LOVING(55), + /** + * + * + *
+     * Compassionate.
+     * 
+ * + * COMPASSIONATE = 56; + */ + COMPASSIONATE(56), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Mood"); + } + + /** + * + * + *
+     * Unspecified mood.
+     * 
+ * + * MOOD_UNSPECIFIED = 0; + */ + public static final int MOOD_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Amazed.
+     * 
+ * + * AMAZED = 1; + */ + public static final int AMAZED_VALUE = 1; + + /** + * + * + *
+     * Amused.
+     * 
+ * + * AMUSED = 2; + */ + public static final int AMUSED_VALUE = 2; + + /** + * + * + *
+     * Angry.
+     * 
+ * + * ANGRY = 3; + */ + public static final int ANGRY_VALUE = 3; + + /** + * + * + *
+     * Annoyed.
+     * 
+ * + * ANNOYED = 4; + */ + public static final int ANNOYED_VALUE = 4; + + /** + * + * + *
+     * Anxious.
+     * 
+ * + * ANXIOUS = 5; + */ + public static final int ANXIOUS_VALUE = 5; + + /** + * + * + *
+     * Happy.
+     * 
+ * + * HAPPY = 6; + */ + public static final int HAPPY_VALUE = 6; + + /** + * + * + *
+     * Content.
+     * 
+ * + * CONTENT = 7; + */ + public static final int CONTENT_VALUE = 7; + + /** + * + * + *
+     * Sad.
+     * 
+ * + * SAD = 8; + */ + public static final int SAD_VALUE = 8; + + /** + * + * + *
+     * Worried.
+     * 
+ * + * WORRIED = 9; + */ + public static final int WORRIED_VALUE = 9; + + /** + * + * + *
+     * Frustrated.
+     * 
+ * + * FRUSTRATED = 10; + */ + public static final int FRUSTRATED_VALUE = 10; + + /** + * + * + *
+     * Excited.
+     * 
+ * + * EXCITED = 11; + */ + public static final int EXCITED_VALUE = 11; + + /** + * + * + *
+     * Calm.
+     * 
+ * + * CALM = 12; + */ + public static final int CALM_VALUE = 12; + + /** + * + * + *
+     * Stressed.
+     * 
+ * + * STRESSED = 13; + */ + public static final int STRESSED_VALUE = 13; + + /** + * + * + *
+     * Ashamed.
+     * 
+ * + * ASHAMED = 14; + */ + public static final int ASHAMED_VALUE = 14; + + /** + * + * + *
+     * Brave.
+     * 
+ * + * BRAVE = 15; + */ + public static final int BRAVE_VALUE = 15; + + /** + * + * + *
+     * Confident.
+     * 
+ * + * CONFIDENT = 16; + */ + public static final int CONFIDENT_VALUE = 16; + + /** + * + * + *
+     * Disappointed.
+     * 
+ * + * DISAPPOINTED = 17; + */ + public static final int DISAPPOINTED_VALUE = 17; + + /** + * + * + *
+     * Discouraged.
+     * 
+ * + * DISCOURAGED = 18; + */ + public static final int DISCOURAGED_VALUE = 18; + + /** + * + * + *
+     * Disgusted.
+     * 
+ * + * DISGUSTED = 19; + */ + public static final int DISGUSTED_VALUE = 19; + + /** + * + * + *
+     * Drained.
+     * 
+ * + * DRAINED = 20; + */ + public static final int DRAINED_VALUE = 20; + + /** + * + * + *
+     * Embarrassed.
+     * 
+ * + * EMBARRASSED = 21; + */ + public static final int EMBARRASSED_VALUE = 21; + + /** + * + * + *
+     * Grateful.
+     * 
+ * + * GRATEFUL = 22; + */ + public static final int GRATEFUL_VALUE = 22; + + /** + * + * + *
+     * Guilty.
+     * 
+ * + * GUILTY = 23; + */ + public static final int GUILTY_VALUE = 23; + + /** + * + * + *
+     * Hopeful.
+     * 
+ * + * HOPEFUL = 24; + */ + public static final int HOPEFUL_VALUE = 24; + + /** + * + * + *
+     * Hopeless.
+     * 
+ * + * HOPELESS = 25; + */ + public static final int HOPELESS_VALUE = 25; + + /** + * + * + *
+     * Indifferent.
+     * 
+ * + * INDIFFERENT = 26; + */ + public static final int INDIFFERENT_VALUE = 26; + + /** + * + * + *
+     * Irritated.
+     * 
+ * + * IRRITATED = 27; + */ + public static final int IRRITATED_VALUE = 27; + + /** + * + * + *
+     * Jealous.
+     * 
+ * + * JEALOUS = 28; + */ + public static final int JEALOUS_VALUE = 28; + + /** + * + * + *
+     * Joyful.
+     * 
+ * + * JOYFUL = 29; + */ + public static final int JOYFUL_VALUE = 29; + + /** + * + * + *
+     * Lonely.
+     * 
+ * + * LONELY = 30; + */ + public static final int LONELY_VALUE = 30; + + /** + * + * + *
+     * Overwhelmed.
+     * 
+ * + * OVERWHELMED = 31; + */ + public static final int OVERWHELMED_VALUE = 31; + + /** + * + * + *
+     * Passionate.
+     * 
+ * + * PASSIONATE = 32; + */ + public static final int PASSIONATE_VALUE = 32; + + /** + * + * + *
+     * Peaceful.
+     * 
+ * + * PEACEFUL = 33; + */ + public static final int PEACEFUL_VALUE = 33; + + /** + * + * + *
+     * Proud.
+     * 
+ * + * PROUD = 34; + */ + public static final int PROUD_VALUE = 34; + + /** + * + * + *
+     * Relieved.
+     * 
+ * + * RELIEVED = 35; + */ + public static final int RELIEVED_VALUE = 35; + + /** + * + * + *
+     * Satisfied.
+     * 
+ * + * SATISFIED = 36; + */ + public static final int SATISFIED_VALUE = 36; + + /** + * + * + *
+     * Scared.
+     * 
+ * + * SCARED = 37; + */ + public static final int SCARED_VALUE = 37; + + /** + * + * + *
+     * Surprised.
+     * 
+ * + * SURPRISED = 38; + */ + public static final int SURPRISED_VALUE = 38; + + /** + * + * + *
+     * Energized.
+     * 
+ * + * ENERGIZED = 39; + */ + public static final int ENERGIZED_VALUE = 39; + + /** + * + * + *
+     * Fatigued.
+     * 
+ * + * FATIGUED = 40; + */ + public static final int FATIGUED_VALUE = 40; + + /** + * + * + *
+     * Very calm.
+     * 
+ * + * VERY_CALM = 41; + */ + public static final int VERY_CALM_VALUE = 41; + + /** + * + * + *
+     * Very stressed.
+     * 
+ * + * VERY_STRESSED = 42; + */ + public static final int VERY_STRESSED_VALUE = 42; + + /** + * + * + *
+     * Neutral.
+     * 
+ * + * NEUTRAL = 43; + */ + public static final int NEUTRAL_VALUE = 43; + + /** + * + * + *
+     * Afraid.
+     * 
+ * + * AFRAID = 44; + */ + public static final int AFRAID_VALUE = 44; + + /** + * + * + *
+     * Hurting.
+     * 
+ * + * HURTING = 45; + */ + public static final int HURTING_VALUE = 45; + + /** + * + * + *
+     * Bored.
+     * 
+ * + * BORED = 46; + */ + public static final int BORED_VALUE = 46; + + /** + * + * + *
+     * Bitter.
+     * 
+ * + * BITTER = 47; + */ + public static final int BITTER_VALUE = 47; + + /** + * + * + *
+     * Envious.
+     * 
+ * + * ENVIOUS = 48; + */ + public static final int ENVIOUS_VALUE = 48; + + /** + * + * + *
+     * Confused.
+     * 
+ * + * CONFUSED = 49; + */ + public static final int CONFUSED_VALUE = 49; + + /** + * + * + *
+     * Curious.
+     * 
+ * + * CURIOUS = 50; + */ + public static final int CURIOUS_VALUE = 50; + + /** + * + * + *
+     * Awestruck.
+     * 
+ * + * AWESTRUCK = 51; + */ + public static final int AWESTRUCK_VALUE = 51; + + /** + * + * + *
+     * Inspired.
+     * 
+ * + * INSPIRED = 52; + */ + public static final int INSPIRED_VALUE = 52; + + /** + * + * + *
+     * Longing.
+     * 
+ * + * LONGING = 53; + */ + public static final int LONGING_VALUE = 53; + + /** + * + * + *
+     * Accomplished.
+     * 
+ * + * ACCOMPLISHED = 54; + */ + public static final int ACCOMPLISHED_VALUE = 54; + + /** + * + * + *
+     * Loving.
+     * 
+ * + * LOVING = 55; + */ + public static final int LOVING_VALUE = 55; + + /** + * + * + *
+     * Compassionate.
+     * 
+ * + * COMPASSIONATE = 56; + */ + public static final int COMPASSIONATE_VALUE = 56; + + 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 Mood 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 Mood forNumber(int value) { + switch (value) { + case 0: + return MOOD_UNSPECIFIED; + case 1: + return AMAZED; + case 2: + return AMUSED; + case 3: + return ANGRY; + case 4: + return ANNOYED; + case 5: + return ANXIOUS; + case 6: + return HAPPY; + case 7: + return CONTENT; + case 8: + return SAD; + case 9: + return WORRIED; + case 10: + return FRUSTRATED; + case 11: + return EXCITED; + case 12: + return CALM; + case 13: + return STRESSED; + case 14: + return ASHAMED; + case 15: + return BRAVE; + case 16: + return CONFIDENT; + case 17: + return DISAPPOINTED; + case 18: + return DISCOURAGED; + case 19: + return DISGUSTED; + case 20: + return DRAINED; + case 21: + return EMBARRASSED; + case 22: + return GRATEFUL; + case 23: + return GUILTY; + case 24: + return HOPEFUL; + case 25: + return HOPELESS; + case 26: + return INDIFFERENT; + case 27: + return IRRITATED; + case 28: + return JEALOUS; + case 29: + return JOYFUL; + case 30: + return LONELY; + case 31: + return OVERWHELMED; + case 32: + return PASSIONATE; + case 33: + return PEACEFUL; + case 34: + return PROUD; + case 35: + return RELIEVED; + case 36: + return SATISFIED; + case 37: + return SCARED; + case 38: + return SURPRISED; + case 39: + return ENERGIZED; + case 40: + return FATIGUED; + case 41: + return VERY_CALM; + case 42: + return VERY_STRESSED; + case 43: + return NEUTRAL; + case 44: + return AFRAID; + case 45: + return HURTING; + case 46: + return BORED; + case 47: + return BITTER; + case 48: + return ENVIOUS; + case 49: + return CONFUSED; + case 50: + return CURIOUS; + case 51: + return AWESTRUCK; + case 52: + return INSPIRED; + case 53: + return LONGING; + case 54: + return ACCOMPLISHED; + case 55: + return LOVING; + case 56: + return COMPASSIONATE; + 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 Mood findValueByNumber(int number) { + return Mood.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.devicesandservices.health.v4.Moods.getDescriptor().getEnumTypes().get(0); + } + + private static final Mood[] VALUES = values(); + + public static Mood 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 Mood(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.devicesandservices.health.v4.Moods.Mood) + } + + /** + * + * + *
+   * The valence.
+   * 
+ * + * Protobuf enum {@code google.devicesandservices.health.v4.Moods.Valence} + */ + public enum Valence implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified valence.
+     * 
+ * + * VALENCE_UNSPECIFIED = 0; + */ + VALENCE_UNSPECIFIED(0), + /** + * + * + *
+     * Unpleasant.
+     * 
+ * + * UNPLEASANT = 1; + */ + UNPLEASANT(1), + /** + * + * + *
+     * Baseline.
+     * 
+ * + * BASELINE = 2; + */ + BASELINE(2), + /** + * + * + *
+     * Pleasant.
+     * 
+ * + * PLEASANT = 3; + */ + PLEASANT(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Valence"); + } + + /** + * + * + *
+     * Unspecified valence.
+     * 
+ * + * VALENCE_UNSPECIFIED = 0; + */ + public static final int VALENCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Unpleasant.
+     * 
+ * + * UNPLEASANT = 1; + */ + public static final int UNPLEASANT_VALUE = 1; + + /** + * + * + *
+     * Baseline.
+     * 
+ * + * BASELINE = 2; + */ + public static final int BASELINE_VALUE = 2; + + /** + * + * + *
+     * Pleasant.
+     * 
+ * + * PLEASANT = 3; + */ + public static final int PLEASANT_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 Valence 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 Valence forNumber(int value) { + switch (value) { + case 0: + return VALENCE_UNSPECIFIED; + case 1: + return UNPLEASANT; + case 2: + return BASELINE; + case 3: + return PLEASANT; + 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 Valence findValueByNumber(int number) { + return Valence.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.devicesandservices.health.v4.Moods.getDescriptor().getEnumTypes().get(1); + } + + private static final Valence[] VALUES = values(); + + public static Valence 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 Valence(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.devicesandservices.health.v4.Moods.Valence) + } + + private int bitField0_; + public static final int SAMPLE_TIME_FIELD_NUMBER = 2; + private com.google.devicesandservices.health.v4.ObservationSampleTime sampleTime_; + + /** + * + * + *
+   * Required. The time at which moods were measured.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleTime field is set. + */ + @java.lang.Override + public boolean hasSampleTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The time at which moods were measured.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleTime. + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.ObservationSampleTime getSampleTime() { + return sampleTime_ == null + ? com.google.devicesandservices.health.v4.ObservationSampleTime.getDefaultInstance() + : sampleTime_; + } + + /** + * + * + *
+   * Required. The time at which moods were measured.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder + getSampleTimeOrBuilder() { + return sampleTime_ == null + ? com.google.devicesandservices.health.v4.ObservationSampleTime.getDefaultInstance() + : sampleTime_; + } + + public static final int MOODS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList moods_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.devicesandservices.health.v4.Moods.Mood> + moods_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.devicesandservices.health.v4.Moods.Mood>() { + public com.google.devicesandservices.health.v4.Moods.Mood convert(int from) { + com.google.devicesandservices.health.v4.Moods.Mood result = + com.google.devicesandservices.health.v4.Moods.Mood.forNumber(from); + return result == null + ? com.google.devicesandservices.health.v4.Moods.Mood.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * Required. The moods logged.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the moods. + */ + @java.lang.Override + public java.util.List getMoodsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.devicesandservices.health.v4.Moods.Mood>(moods_, moods_converter_); + } + + /** + * + * + *
+   * Required. The moods logged.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of moods. + */ + @java.lang.Override + public int getMoodsCount() { + return moods_.size(); + } + + /** + * + * + *
+   * Required. The moods logged.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The moods at the given index. + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.Moods.Mood getMoods(int index) { + return moods_converter_.convert(moods_.getInt(index)); + } + + /** + * + * + *
+   * Required. The moods logged.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for moods. + */ + @java.lang.Override + public java.util.List getMoodsValueList() { + return moods_; + } + + /** + * + * + *
+   * Required. The moods logged.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of moods at the given index. + */ + @java.lang.Override + public int getMoodsValue(int index) { + return moods_.getInt(index); + } + + private int moodsMemoizedSerializedSize; + + public static final int VALENCES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList valences_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.devicesandservices.health.v4.Moods.Valence> + valences_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.devicesandservices.health.v4.Moods.Valence>() { + public com.google.devicesandservices.health.v4.Moods.Valence convert(int from) { + com.google.devicesandservices.health.v4.Moods.Valence result = + com.google.devicesandservices.health.v4.Moods.Valence.forNumber(from); + return result == null + ? com.google.devicesandservices.health.v4.Moods.Valence.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * Optional. The valences.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the valences. + */ + @java.lang.Override + public java.util.List getValencesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.devicesandservices.health.v4.Moods.Valence>(valences_, valences_converter_); + } + + /** + * + * + *
+   * Optional. The valences.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of valences. + */ + @java.lang.Override + public int getValencesCount() { + return valences_.size(); + } + + /** + * + * + *
+   * Optional. The valences.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The valences at the given index. + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.Moods.Valence getValences(int index) { + return valences_converter_.convert(valences_.getInt(index)); + } + + /** + * + * + *
+   * Optional. The valences.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for valences. + */ + @java.lang.Override + public java.util.List getValencesValueList() { + return valences_; + } + + /** + * + * + *
+   * Optional. The valences.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of valences at the given index. + */ + @java.lang.Override + public int getValencesValue(int index) { + return valences_.getInt(index); + } + + private int valencesMemoizedSerializedSize; + + 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 { + getSerializedSize(); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSampleTime()); + } + if (getMoodsList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(moodsMemoizedSerializedSize); + } + for (int i = 0; i < moods_.size(); i++) { + output.writeEnumNoTag(moods_.getInt(i)); + } + if (getValencesList().size() > 0) { + output.writeUInt32NoTag(42); + output.writeUInt32NoTag(valencesMemoizedSerializedSize); + } + for (int i = 0; i < valences_.size(); i++) { + output.writeEnumNoTag(valences_.getInt(i)); + } + 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(2, getSampleTime()); + } + { + int dataSize = 0; + for (int i = 0; i < moods_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(moods_.getInt(i)); + } + size += dataSize; + if (!getMoodsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + moodsMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < valences_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(valences_.getInt(i)); + } + size += dataSize; + if (!getValencesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + valencesMemoizedSerializedSize = dataSize; + } + 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.devicesandservices.health.v4.Moods)) { + return super.equals(obj); + } + com.google.devicesandservices.health.v4.Moods other = + (com.google.devicesandservices.health.v4.Moods) obj; + + if (hasSampleTime() != other.hasSampleTime()) return false; + if (hasSampleTime()) { + if (!getSampleTime().equals(other.getSampleTime())) return false; + } + if (!moods_.equals(other.moods_)) return false; + if (!valences_.equals(other.valences_)) 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 (hasSampleTime()) { + hash = (37 * hash) + SAMPLE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getSampleTime().hashCode(); + } + if (getMoodsCount() > 0) { + hash = (37 * hash) + MOODS_FIELD_NUMBER; + hash = (53 * hash) + moods_.hashCode(); + } + if (getValencesCount() > 0) { + hash = (37 * hash) + VALENCES_FIELD_NUMBER; + hash = (53 * hash) + valences_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devicesandservices.health.v4.Moods parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devicesandservices.health.v4.Moods parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devicesandservices.health.v4.Moods parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devicesandservices.health.v4.Moods 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.devicesandservices.health.v4.Moods parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devicesandservices.health.v4.Moods parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devicesandservices.health.v4.Moods parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.devicesandservices.health.v4.Moods 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.devicesandservices.health.v4.Moods parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devicesandservices.health.v4.Moods 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.devicesandservices.health.v4.Moods parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.devicesandservices.health.v4.Moods 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.devicesandservices.health.v4.Moods 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; + } + + /** + * + * + *
+   * Moods record.
+   * 
+ * + * Protobuf type {@code google.devicesandservices.health.v4.Moods} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devicesandservices.health.v4.Moods) + com.google.devicesandservices.health.v4.MoodsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_Moods_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_Moods_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devicesandservices.health.v4.Moods.class, + com.google.devicesandservices.health.v4.Moods.Builder.class); + } + + // Construct using com.google.devicesandservices.health.v4.Moods.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSampleTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sampleTime_ = null; + if (sampleTimeBuilder_ != null) { + sampleTimeBuilder_.dispose(); + sampleTimeBuilder_ = null; + } + moods_ = emptyIntList(); + valences_ = emptyIntList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_Moods_descriptor; + } + + @java.lang.Override + public com.google.devicesandservices.health.v4.Moods getDefaultInstanceForType() { + return com.google.devicesandservices.health.v4.Moods.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devicesandservices.health.v4.Moods build() { + com.google.devicesandservices.health.v4.Moods result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devicesandservices.health.v4.Moods buildPartial() { + com.google.devicesandservices.health.v4.Moods result = + new com.google.devicesandservices.health.v4.Moods(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.devicesandservices.health.v4.Moods result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sampleTime_ = sampleTimeBuilder_ == null ? sampleTime_ : sampleTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + moods_.makeImmutable(); + result.moods_ = moods_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + valences_.makeImmutable(); + result.valences_ = valences_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devicesandservices.health.v4.Moods) { + return mergeFrom((com.google.devicesandservices.health.v4.Moods) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devicesandservices.health.v4.Moods other) { + if (other == com.google.devicesandservices.health.v4.Moods.getDefaultInstance()) return this; + if (other.hasSampleTime()) { + mergeSampleTime(other.getSampleTime()); + } + if (!other.moods_.isEmpty()) { + if (moods_.isEmpty()) { + moods_ = other.moods_; + moods_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensureMoodsIsMutable(); + moods_.addAll(other.moods_); + } + onChanged(); + } + if (!other.valences_.isEmpty()) { + if (valences_.isEmpty()) { + valences_ = other.valences_; + valences_.makeImmutable(); + bitField0_ |= 0x00000004; + } else { + ensureValencesIsMutable(); + valences_.addAll(other.valences_); + } + 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: + { + input.readMessage( + internalGetSampleTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 24: + { + int tmpRaw = input.readEnum(); + ensureMoodsIsMutable(); + moods_.addInt(tmpRaw); + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureMoodsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + moods_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 26 + case 40: + { + int tmpRaw = input.readEnum(); + ensureValencesIsMutable(); + valences_.addInt(tmpRaw); + break; + } // case 40 + case 42: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureValencesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + valences_.addInt(input.readEnum()); + } + input.popLimit(limit); + 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 com.google.devicesandservices.health.v4.ObservationSampleTime sampleTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.ObservationSampleTime, + com.google.devicesandservices.health.v4.ObservationSampleTime.Builder, + com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder> + sampleTimeBuilder_; + + /** + * + * + *
+     * Required. The time at which moods were measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleTime field is set. + */ + public boolean hasSampleTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The time at which moods were measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleTime. + */ + public com.google.devicesandservices.health.v4.ObservationSampleTime getSampleTime() { + if (sampleTimeBuilder_ == null) { + return sampleTime_ == null + ? com.google.devicesandservices.health.v4.ObservationSampleTime.getDefaultInstance() + : sampleTime_; + } else { + return sampleTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The time at which moods were measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleTime( + com.google.devicesandservices.health.v4.ObservationSampleTime value) { + if (sampleTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sampleTime_ = value; + } else { + sampleTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The time at which moods were measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleTime( + com.google.devicesandservices.health.v4.ObservationSampleTime.Builder builderForValue) { + if (sampleTimeBuilder_ == null) { + sampleTime_ = builderForValue.build(); + } else { + sampleTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The time at which moods were measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSampleTime( + com.google.devicesandservices.health.v4.ObservationSampleTime value) { + if (sampleTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && sampleTime_ != null + && sampleTime_ + != com.google.devicesandservices.health.v4.ObservationSampleTime + .getDefaultInstance()) { + getSampleTimeBuilder().mergeFrom(value); + } else { + sampleTime_ = value; + } + } else { + sampleTimeBuilder_.mergeFrom(value); + } + if (sampleTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The time at which moods were measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSampleTime() { + bitField0_ = (bitField0_ & ~0x00000001); + sampleTime_ = null; + if (sampleTimeBuilder_ != null) { + sampleTimeBuilder_.dispose(); + sampleTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The time at which moods were measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.devicesandservices.health.v4.ObservationSampleTime.Builder + getSampleTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSampleTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The time at which moods were measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder + getSampleTimeOrBuilder() { + if (sampleTimeBuilder_ != null) { + return sampleTimeBuilder_.getMessageOrBuilder(); + } else { + return sampleTime_ == null + ? com.google.devicesandservices.health.v4.ObservationSampleTime.getDefaultInstance() + : sampleTime_; + } + } + + /** + * + * + *
+     * Required. The time at which moods were measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.ObservationSampleTime, + com.google.devicesandservices.health.v4.ObservationSampleTime.Builder, + com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder> + internalGetSampleTimeFieldBuilder() { + if (sampleTimeBuilder_ == null) { + sampleTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.ObservationSampleTime, + com.google.devicesandservices.health.v4.ObservationSampleTime.Builder, + com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder>( + getSampleTime(), getParentForChildren(), isClean()); + sampleTime_ = null; + } + return sampleTimeBuilder_; + } + + private com.google.protobuf.Internal.IntList moods_ = emptyIntList(); + + private void ensureMoodsIsMutable() { + if (!moods_.isModifiable()) { + moods_ = makeMutableCopy(moods_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Required. The moods logged.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the moods. + */ + public java.util.List getMoodsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.devicesandservices.health.v4.Moods.Mood>(moods_, moods_converter_); + } + + /** + * + * + *
+     * Required. The moods logged.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of moods. + */ + public int getMoodsCount() { + return moods_.size(); + } + + /** + * + * + *
+     * Required. The moods logged.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The moods at the given index. + */ + public com.google.devicesandservices.health.v4.Moods.Mood getMoods(int index) { + return moods_converter_.convert(moods_.getInt(index)); + } + + /** + * + * + *
+     * Required. The moods logged.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The moods to set. + * @return This builder for chaining. + */ + public Builder setMoods(int index, com.google.devicesandservices.health.v4.Moods.Mood value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMoodsIsMutable(); + moods_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The moods logged.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The moods to add. + * @return This builder for chaining. + */ + public Builder addMoods(com.google.devicesandservices.health.v4.Moods.Mood value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMoodsIsMutable(); + moods_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The moods logged.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The moods to add. + * @return This builder for chaining. + */ + public Builder addAllMoods( + java.lang.Iterable values) { + ensureMoodsIsMutable(); + for (com.google.devicesandservices.health.v4.Moods.Mood value : values) { + moods_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The moods logged.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMoods() { + moods_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The moods logged.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for moods. + */ + public java.util.List getMoodsValueList() { + moods_.makeImmutable(); + return moods_; + } + + /** + * + * + *
+     * Required. The moods logged.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of moods at the given index. + */ + public int getMoodsValue(int index) { + return moods_.getInt(index); + } + + /** + * + * + *
+     * Required. The moods logged.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for moods to set. + * @return This builder for chaining. + */ + public Builder setMoodsValue(int index, int value) { + ensureMoodsIsMutable(); + moods_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The moods logged.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for moods to add. + * @return This builder for chaining. + */ + public Builder addMoodsValue(int value) { + ensureMoodsIsMutable(); + moods_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The moods logged.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The enum numeric values on the wire for moods to add. + * @return This builder for chaining. + */ + public Builder addAllMoodsValue(java.lang.Iterable values) { + ensureMoodsIsMutable(); + for (int value : values) { + moods_.addInt(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList valences_ = emptyIntList(); + + private void ensureValencesIsMutable() { + if (!valences_.isModifiable()) { + valences_ = makeMutableCopy(valences_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Optional. The valences.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the valences. + */ + public java.util.List getValencesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.devicesandservices.health.v4.Moods.Valence>(valences_, valences_converter_); + } + + /** + * + * + *
+     * Optional. The valences.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of valences. + */ + public int getValencesCount() { + return valences_.size(); + } + + /** + * + * + *
+     * Optional. The valences.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The valences at the given index. + */ + public com.google.devicesandservices.health.v4.Moods.Valence getValences(int index) { + return valences_converter_.convert(valences_.getInt(index)); + } + + /** + * + * + *
+     * Optional. The valences.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The valences to set. + * @return This builder for chaining. + */ + public Builder setValences( + int index, com.google.devicesandservices.health.v4.Moods.Valence value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValencesIsMutable(); + valences_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The valences.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The valences to add. + * @return This builder for chaining. + */ + public Builder addValences(com.google.devicesandservices.health.v4.Moods.Valence value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValencesIsMutable(); + valences_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The valences.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The valences to add. + * @return This builder for chaining. + */ + public Builder addAllValences( + java.lang.Iterable + values) { + ensureValencesIsMutable(); + for (com.google.devicesandservices.health.v4.Moods.Valence value : values) { + valences_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The valences.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearValences() { + valences_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The valences.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for valences. + */ + public java.util.List getValencesValueList() { + valences_.makeImmutable(); + return valences_; + } + + /** + * + * + *
+     * Optional. The valences.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of valences at the given index. + */ + public int getValencesValue(int index) { + return valences_.getInt(index); + } + + /** + * + * + *
+     * Optional. The valences.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for valences to set. + * @return This builder for chaining. + */ + public Builder setValencesValue(int index, int value) { + ensureValencesIsMutable(); + valences_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The valences.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for valences to add. + * @return This builder for chaining. + */ + public Builder addValencesValue(int value) { + ensureValencesIsMutable(); + valences_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The valences.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for valences to add. + * @return This builder for chaining. + */ + public Builder addAllValencesValue(java.lang.Iterable values) { + ensureValencesIsMutable(); + for (int value : values) { + valences_.addInt(value); + } + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.devicesandservices.health.v4.Moods) + } + + // @@protoc_insertion_point(class_scope:google.devicesandservices.health.v4.Moods) + private static final com.google.devicesandservices.health.v4.Moods DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devicesandservices.health.v4.Moods(); + } + + public static com.google.devicesandservices.health.v4.Moods getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Moods 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.devicesandservices.health.v4.Moods getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/MoodsOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/MoodsOrBuilder.java new file mode 100644 index 000000000000..b81498a826a2 --- /dev/null +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/MoodsOrBuilder.java @@ -0,0 +1,225 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/devicesandservices/health/v4/data_model.proto +// Protobuf Java Version: 4.33.6 + +package com.google.devicesandservices.health.v4; + +@com.google.protobuf.Generated +public interface MoodsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devicesandservices.health.v4.Moods) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The time at which moods were measured.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleTime field is set. + */ + boolean hasSampleTime(); + + /** + * + * + *
+   * Required. The time at which moods were measured.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleTime. + */ + com.google.devicesandservices.health.v4.ObservationSampleTime getSampleTime(); + + /** + * + * + *
+   * Required. The time at which moods were measured.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder getSampleTimeOrBuilder(); + + /** + * + * + *
+   * Required. The moods logged.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the moods. + */ + java.util.List getMoodsList(); + + /** + * + * + *
+   * Required. The moods logged.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of moods. + */ + int getMoodsCount(); + + /** + * + * + *
+   * Required. The moods logged.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The moods at the given index. + */ + com.google.devicesandservices.health.v4.Moods.Mood getMoods(int index); + + /** + * + * + *
+   * Required. The moods logged.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for moods. + */ + java.util.List getMoodsValueList(); + + /** + * + * + *
+   * Required. The moods logged.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Mood moods = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of moods at the given index. + */ + int getMoodsValue(int index); + + /** + * + * + *
+   * Optional. The valences.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the valences. + */ + java.util.List getValencesList(); + + /** + * + * + *
+   * Optional. The valences.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of valences. + */ + int getValencesCount(); + + /** + * + * + *
+   * Optional. The valences.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The valences at the given index. + */ + com.google.devicesandservices.health.v4.Moods.Valence getValences(int index); + + /** + * + * + *
+   * Optional. The valences.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for valences. + */ + java.util.List getValencesValueList(); + + /** + * + * + *
+   * Optional. The valences.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Moods.Valence valences = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of valences at the given index. + */ + int getValencesValue(int index); +} diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/NutrientQuantity.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/NutrientQuantity.java index 267e96b75963..c6a52655f3b4 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/NutrientQuantity.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/NutrientQuantity.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Value representing the quantity of the nutrient.
+   * Required. The quantity of the nutrient, measured in grams.
    * 
* * @@ -96,7 +96,7 @@ public boolean hasQuantity() { * * *
-   * Required. Value representing the quantity of the nutrient.
+   * Required. The quantity of the nutrient, measured in grams.
    * 
* * @@ -116,7 +116,7 @@ public com.google.devicesandservices.health.v4.WeightQuantity getQuantity() { * * *
-   * Required. Value representing the quantity of the nutrient.
+   * Required. The quantity of the nutrient, measured in grams.
    * 
* * @@ -137,7 +137,7 @@ public com.google.devicesandservices.health.v4.WeightQuantityOrBuilder getQuanti * * *
-   * Required. Value representing the nutrient.
+   * Required. The nutrient type.
    * 
* * @@ -155,7 +155,7 @@ public int getNutrientValue() { * * *
-   * Required. Value representing the nutrient.
+   * Required. The nutrient type.
    * 
* * @@ -537,7 +537,7 @@ public Builder mergeFrom( * * *
-     * Required. Value representing the quantity of the nutrient.
+     * Required. The quantity of the nutrient, measured in grams.
      * 
* * @@ -554,7 +554,7 @@ public boolean hasQuantity() { * * *
-     * Required. Value representing the quantity of the nutrient.
+     * Required. The quantity of the nutrient, measured in grams.
      * 
* * @@ -577,7 +577,7 @@ public com.google.devicesandservices.health.v4.WeightQuantity getQuantity() { * * *
-     * Required. Value representing the quantity of the nutrient.
+     * Required. The quantity of the nutrient, measured in grams.
      * 
* * @@ -602,7 +602,7 @@ public Builder setQuantity(com.google.devicesandservices.health.v4.WeightQuantit * * *
-     * Required. Value representing the quantity of the nutrient.
+     * Required. The quantity of the nutrient, measured in grams.
      * 
* * @@ -625,7 +625,7 @@ public Builder setQuantity( * * *
-     * Required. Value representing the quantity of the nutrient.
+     * Required. The quantity of the nutrient, measured in grams.
      * 
* * @@ -656,7 +656,7 @@ public Builder mergeQuantity(com.google.devicesandservices.health.v4.WeightQuant * * *
-     * Required. Value representing the quantity of the nutrient.
+     * Required. The quantity of the nutrient, measured in grams.
      * 
* * @@ -678,7 +678,7 @@ public Builder clearQuantity() { * * *
-     * Required. Value representing the quantity of the nutrient.
+     * Required. The quantity of the nutrient, measured in grams.
      * 
* * @@ -695,7 +695,7 @@ public com.google.devicesandservices.health.v4.WeightQuantity.Builder getQuantit * * *
-     * Required. Value representing the quantity of the nutrient.
+     * Required. The quantity of the nutrient, measured in grams.
      * 
* * @@ -716,7 +716,7 @@ public com.google.devicesandservices.health.v4.WeightQuantityOrBuilder getQuanti * * *
-     * Required. Value representing the quantity of the nutrient.
+     * Required. The quantity of the nutrient, measured in grams.
      * 
* * @@ -746,7 +746,7 @@ public com.google.devicesandservices.health.v4.WeightQuantityOrBuilder getQuanti * * *
-     * Required. Value representing the nutrient.
+     * Required. The nutrient type.
      * 
* * @@ -764,7 +764,7 @@ public int getNutrientValue() { * * *
-     * Required. Value representing the nutrient.
+     * Required. The nutrient type.
      * 
* * @@ -785,7 +785,7 @@ public Builder setNutrientValue(int value) { * * *
-     * Required. Value representing the nutrient.
+     * Required. The nutrient type.
      * 
* * @@ -807,7 +807,7 @@ public com.google.devicesandservices.health.v4.Nutrient getNutrient() { * * *
-     * Required. Value representing the nutrient.
+     * Required. The nutrient type.
      * 
* * @@ -831,7 +831,7 @@ public Builder setNutrient(com.google.devicesandservices.health.v4.Nutrient valu * * *
-     * Required. Value representing the nutrient.
+     * Required. The nutrient type.
      * 
* * diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/NutrientQuantityOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/NutrientQuantityOrBuilder.java index 0afdbf8b9fe7..56766b42095c 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/NutrientQuantityOrBuilder.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/NutrientQuantityOrBuilder.java @@ -30,7 +30,7 @@ public interface NutrientQuantityOrBuilder * * *
-   * Required. Value representing the quantity of the nutrient.
+   * Required. The quantity of the nutrient, measured in grams.
    * 
* * @@ -45,7 +45,7 @@ public interface NutrientQuantityOrBuilder * * *
-   * Required. Value representing the quantity of the nutrient.
+   * Required. The quantity of the nutrient, measured in grams.
    * 
* * @@ -60,7 +60,7 @@ public interface NutrientQuantityOrBuilder * * *
-   * Required. Value representing the quantity of the nutrient.
+   * Required. The quantity of the nutrient, measured in grams.
    * 
* * @@ -73,7 +73,7 @@ public interface NutrientQuantityOrBuilder * * *
-   * Required. Value representing the nutrient.
+   * Required. The nutrient type.
    * 
* * @@ -88,7 +88,7 @@ public interface NutrientQuantityOrBuilder * * *
-   * Required. Value representing the nutrient.
+   * Required. The nutrient type.
    * 
* * diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/NutritionLog.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/NutritionLog.java index ce8f90475967..d87e804eca4b 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/NutritionLog.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/NutritionLog.java @@ -24,7 +24,7 @@ * * *
- * Holds information about a user logged food.
+ * Holds information about food logged by a user.
  *
  * There are two ways of creating a nutrition log based on the food type:
  * 1. Identified food: Using the food field, which is a reference to a Food
@@ -36,7 +36,7 @@
  * `total_fat` fields manually.
  *
  * The identified food is preferred over the anonymous food.
- * Nutrition logs created from anonymous food are not be editable.
+ * Nutrition logs created from anonymous food are not editable.
  * 
* * Protobuf type {@code google.devicesandservices.health.v4.NutritionLog} @@ -94,7 +94,7 @@ public interface ServingOrBuilder * * *
-     * Optional. Amount of food consumed, fractional values are supported.
+     * Optional. The number of servings.
      * 
* * optional double amount = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -107,7 +107,7 @@ public interface ServingOrBuilder * * *
-     * Optional. Amount of food consumed, fractional values are supported.
+     * Optional. The number of servings.
      * 
* * optional double amount = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -238,7 +238,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Optional. Amount of food consumed, fractional values are supported.
+     * Optional. The number of servings.
      * 
* * optional double amount = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -254,7 +254,7 @@ public boolean hasAmount() { * * *
-     * Optional. Amount of food consumed, fractional values are supported.
+     * Optional. The number of servings.
      * 
* * optional double amount = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -765,7 +765,7 @@ public Builder mergeFrom( * * *
-       * Optional. Amount of food consumed, fractional values are supported.
+       * Optional. The number of servings.
        * 
* * optional double amount = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -781,7 +781,7 @@ public boolean hasAmount() { * * *
-       * Optional. Amount of food consumed, fractional values are supported.
+       * Optional. The number of servings.
        * 
* * optional double amount = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -797,7 +797,7 @@ public double getAmount() { * * *
-       * Optional. Amount of food consumed, fractional values are supported.
+       * Optional. The number of servings.
        * 
* * optional double amount = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -817,7 +817,7 @@ public Builder setAmount(double value) { * * *
-       * Optional. Amount of food consumed, fractional values are supported.
+       * Optional. The number of servings.
        * 
* * optional double amount = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1141,7 +1141,7 @@ public com.google.protobuf.Parser getParserForType() { * * *
-   * Required. Observed interval.
+   * Required. The time window when the food was logged.
    * 
* * @@ -1159,7 +1159,7 @@ public boolean hasInterval() { * * *
-   * Required. Observed interval.
+   * Required. The time window when the food was logged.
    * 
* * @@ -1179,7 +1179,7 @@ public com.google.devicesandservices.health.v4.SessionTimeInterval getInterval() * * *
-   * Required. Observed interval.
+   * Required. The time window when the food was logged.
    * 
* * @@ -1203,7 +1203,7 @@ public com.google.devicesandservices.health.v4.SessionTimeInterval getInterval() * * *
-   * Optional. Value representing the nutrients of the nutrition log.
+   * Optional. An array of individual nutrient values for the nutrition log.
    * 
* * @@ -1220,7 +1220,7 @@ public com.google.devicesandservices.health.v4.SessionTimeInterval getInterval() * * *
-   * Optional. Value representing the nutrients of the nutrition log.
+   * Optional. An array of individual nutrient values for the nutrition log.
    * 
* * @@ -1237,7 +1237,7 @@ public com.google.devicesandservices.health.v4.SessionTimeInterval getInterval() * * *
-   * Optional. Value representing the nutrients of the nutrition log.
+   * Optional. An array of individual nutrient values for the nutrition log.
    * 
* * @@ -1253,7 +1253,7 @@ public int getNutrientsCount() { * * *
-   * Optional. Value representing the nutrients of the nutrition log.
+   * Optional. An array of individual nutrient values for the nutrition log.
    * 
* * @@ -1269,7 +1269,7 @@ public com.google.devicesandservices.health.v4.NutrientQuantity getNutrients(int * * *
-   * Optional. Value representing the nutrients of the nutrition log.
+   * Optional. An array of individual nutrient values for the nutrition log.
    * 
* * @@ -1289,10 +1289,7 @@ public com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutr * * *
-   * Optional. Value representing the energy of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total energy of the food, measured in kilocalories (`kcal`).
    * 
* * @@ -1310,10 +1307,7 @@ public boolean hasEnergy() { * * *
-   * Optional. Value representing the energy of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total energy of the food, measured in kilocalories (`kcal`).
    * 
* * @@ -1333,10 +1327,7 @@ public com.google.devicesandservices.health.v4.EnergyQuantity getEnergy() { * * *
-   * Optional. Value representing the energy of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total energy of the food, measured in kilocalories (`kcal`).
    * 
* * @@ -1357,10 +1348,7 @@ public com.google.devicesandservices.health.v4.EnergyQuantityOrBuilder getEnergy * * *
-   * Optional. Value representing the energy from fat of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The energy from fat, measured in kilocalories (`kcal`).
    * 
* * @@ -1378,10 +1366,7 @@ public boolean hasEnergyFromFat() { * * *
-   * Optional. Value representing the energy from fat of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The energy from fat, measured in kilocalories (`kcal`).
    * 
* * @@ -1401,10 +1386,7 @@ public com.google.devicesandservices.health.v4.EnergyQuantity getEnergyFromFat() * * *
-   * Optional. Value representing the energy from fat of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The energy from fat, measured in kilocalories (`kcal`).
    * 
* * @@ -1426,10 +1408,7 @@ public com.google.devicesandservices.health.v4.EnergyQuantity getEnergyFromFat() * * *
-   * Optional. Value representing the total carbohydrate of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total carbohydrate content, measured in grams.
    * 
* * @@ -1447,10 +1426,7 @@ public boolean hasTotalCarbohydrate() { * * *
-   * Optional. Value representing the total carbohydrate of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total carbohydrate content, measured in grams.
    * 
* * @@ -1470,10 +1446,7 @@ public com.google.devicesandservices.health.v4.WeightQuantity getTotalCarbohydra * * *
-   * Optional. Value representing the total carbohydrate of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total carbohydrate content, measured in grams.
    * 
* * @@ -1495,10 +1468,7 @@ public com.google.devicesandservices.health.v4.WeightQuantity getTotalCarbohydra * * *
-   * Optional. Value representing the total fat of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total fat content, measured in grams.
    * 
* * @@ -1516,10 +1486,7 @@ public boolean hasTotalFat() { * * *
-   * Optional. Value representing the total fat of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total fat content, measured in grams.
    * 
* * @@ -1539,10 +1506,7 @@ public com.google.devicesandservices.health.v4.WeightQuantity getTotalFat() { * * *
-   * Optional. Value representing the total fat of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total fat content, measured in grams.
    * 
* * @@ -1563,7 +1527,8 @@ public com.google.devicesandservices.health.v4.WeightQuantityOrBuilder getTotalF * * *
-   * Optional. Value representing the meal type of the nutrition log.
+   * Optional. The meal category. One of `BREAKFAST`, `LUNCH`, `DINNER`, or
+   * `SNACK`.
    * 
* * @@ -1581,7 +1546,8 @@ public int getMealTypeValue() { * * *
-   * Optional. Value representing the meal type of the nutrition log.
+   * Optional. The meal category. One of `BREAKFAST`, `LUNCH`, `DINNER`, or
+   * `SNACK`.
    * 
* * @@ -1604,7 +1570,7 @@ public com.google.devicesandservices.health.v4.MealType getMealType() { * * *
-   * Optional. Value representing the nutrition log serving.
+   * Optional. The serving information for the logged food.
    * 
* * @@ -1622,7 +1588,7 @@ public boolean hasServing() { * * *
-   * Optional. Value representing the nutrition log serving.
+   * Optional. The serving information for the logged food.
    * 
* * @@ -1642,7 +1608,7 @@ public com.google.devicesandservices.health.v4.NutritionLog.Serving getServing() * * *
-   * Optional. Value representing the nutrition log serving.
+   * Optional. The serving information for the logged food.
    * 
* * @@ -1666,11 +1632,13 @@ public com.google.devicesandservices.health.v4.NutritionLog.Serving getServing() * * *
-   * Required. Represents the food ID.
+   * Optional. The resource name of the Food item. Required when creating a
+   * nutrition log from an identified food. For anonymous food logs, use the
+   * `food_display_name` field instead.
    * 
* * - * string food = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string food = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The food. @@ -1692,11 +1660,13 @@ public java.lang.String getFood() { * * *
-   * Required. Represents the food ID.
+   * Optional. The resource name of the Food item. Required when creating a
+   * nutrition log from an identified food. For anonymous food logs, use the
+   * `food_display_name` field instead.
    * 
* * - * string food = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string food = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for food. @@ -1723,10 +1693,8 @@ public com.google.protobuf.ByteString getFoodBytes() { * * *
-   * Value representing the display name of the food.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * The display name of the food. For identified food logs, this is populated
+   * automatically from the referenced food.
    * 
* * string food_display_name = 16; @@ -1750,10 +1718,8 @@ public java.lang.String getFoodDisplayName() { * * *
-   * Value representing the display name of the food.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * The display name of the food. For identified food logs, this is populated
+   * automatically from the referenced food.
    * 
* * string food_display_name = 16; @@ -2052,7 +2018,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-   * Holds information about a user logged food.
+   * Holds information about food logged by a user.
    *
    * There are two ways of creating a nutrition log based on the food type:
    * 1. Identified food: Using the food field, which is a reference to a Food
@@ -2064,7 +2030,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
    * `total_fat` fields manually.
    *
    * The identified food is preferred over the anonymous food.
-   * Nutrition logs created from anonymous food are not be editable.
+   * Nutrition logs created from anonymous food are not editable.
    * 
* * Protobuf type {@code google.devicesandservices.health.v4.NutritionLog} @@ -2444,7 +2410,7 @@ public Builder mergeFrom( * * *
-     * Required. Observed interval.
+     * Required. The time window when the food was logged.
      * 
* * @@ -2461,7 +2427,7 @@ public boolean hasInterval() { * * *
-     * Required. Observed interval.
+     * Required. The time window when the food was logged.
      * 
* * @@ -2484,7 +2450,7 @@ public com.google.devicesandservices.health.v4.SessionTimeInterval getInterval() * * *
-     * Required. Observed interval.
+     * Required. The time window when the food was logged.
      * 
* * @@ -2509,7 +2475,7 @@ public Builder setInterval(com.google.devicesandservices.health.v4.SessionTimeIn * * *
-     * Required. Observed interval.
+     * Required. The time window when the food was logged.
      * 
* * @@ -2532,7 +2498,7 @@ public Builder setInterval( * * *
-     * Required. Observed interval.
+     * Required. The time window when the food was logged.
      * 
* * @@ -2565,7 +2531,7 @@ public Builder mergeInterval( * * *
-     * Required. Observed interval.
+     * Required. The time window when the food was logged.
      * 
* * @@ -2587,7 +2553,7 @@ public Builder clearInterval() { * * *
-     * Required. Observed interval.
+     * Required. The time window when the food was logged.
      * 
* * @@ -2605,7 +2571,7 @@ public Builder clearInterval() { * * *
-     * Required. Observed interval.
+     * Required. The time window when the food was logged.
      * 
* * @@ -2627,7 +2593,7 @@ public Builder clearInterval() { * * *
-     * Required. Observed interval.
+     * Required. The time window when the food was logged.
      * 
* * @@ -2673,7 +2639,7 @@ private void ensureNutrientsIsMutable() { * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -2693,7 +2659,7 @@ private void ensureNutrientsIsMutable() { * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -2712,7 +2678,7 @@ public int getNutrientsCount() { * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -2731,7 +2697,7 @@ public com.google.devicesandservices.health.v4.NutrientQuantity getNutrients(int * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -2757,7 +2723,7 @@ public Builder setNutrients( * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -2781,7 +2747,7 @@ public Builder setNutrients( * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -2806,7 +2772,7 @@ public Builder addNutrients(com.google.devicesandservices.health.v4.NutrientQuan * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -2832,7 +2798,7 @@ public Builder addNutrients( * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -2855,7 +2821,7 @@ public Builder addNutrients( * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -2879,7 +2845,7 @@ public Builder addNutrients( * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -2903,7 +2869,7 @@ public Builder addAllNutrients( * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -2925,7 +2891,7 @@ public Builder clearNutrients() { * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -2947,7 +2913,7 @@ public Builder removeNutrients(int index) { * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -2963,7 +2929,7 @@ public com.google.devicesandservices.health.v4.NutrientQuantity.Builder getNutri * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -2983,7 +2949,7 @@ public com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutr * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -3004,7 +2970,7 @@ public com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutr * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -3021,7 +2987,7 @@ public com.google.devicesandservices.health.v4.NutrientQuantity.Builder addNutri * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -3039,7 +3005,7 @@ public com.google.devicesandservices.health.v4.NutrientQuantity.Builder addNutri * * *
-     * Optional. Value representing the nutrients of the nutrition log.
+     * Optional. An array of individual nutrient values for the nutrition log.
      * 
* * @@ -3079,10 +3045,7 @@ public com.google.devicesandservices.health.v4.NutrientQuantity.Builder addNutri * * *
-     * Optional. Value representing the energy of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total energy of the food, measured in kilocalories (`kcal`).
      * 
* * @@ -3099,10 +3062,7 @@ public boolean hasEnergy() { * * *
-     * Optional. Value representing the energy of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total energy of the food, measured in kilocalories (`kcal`).
      * 
* * @@ -3125,10 +3085,7 @@ public com.google.devicesandservices.health.v4.EnergyQuantity getEnergy() { * * *
-     * Optional. Value representing the energy of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total energy of the food, measured in kilocalories (`kcal`).
      * 
* * @@ -3153,10 +3110,7 @@ public Builder setEnergy(com.google.devicesandservices.health.v4.EnergyQuantity * * *
-     * Optional. Value representing the energy of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total energy of the food, measured in kilocalories (`kcal`).
      * 
* * @@ -3179,10 +3133,7 @@ public Builder setEnergy( * * *
-     * Optional. Value representing the energy of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total energy of the food, measured in kilocalories (`kcal`).
      * 
* * @@ -3213,10 +3164,7 @@ public Builder mergeEnergy(com.google.devicesandservices.health.v4.EnergyQuantit * * *
-     * Optional. Value representing the energy of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total energy of the food, measured in kilocalories (`kcal`).
      * 
* * @@ -3238,10 +3186,7 @@ public Builder clearEnergy() { * * *
-     * Optional. Value representing the energy of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total energy of the food, measured in kilocalories (`kcal`).
      * 
* * @@ -3258,10 +3203,7 @@ public com.google.devicesandservices.health.v4.EnergyQuantity.Builder getEnergyB * * *
-     * Optional. Value representing the energy of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total energy of the food, measured in kilocalories (`kcal`).
      * 
* * @@ -3282,10 +3224,7 @@ public com.google.devicesandservices.health.v4.EnergyQuantityOrBuilder getEnergy * * *
-     * Optional. Value representing the energy of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total energy of the food, measured in kilocalories (`kcal`).
      * 
* * @@ -3320,10 +3259,7 @@ public com.google.devicesandservices.health.v4.EnergyQuantityOrBuilder getEnergy * * *
-     * Optional. Value representing the energy from fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The energy from fat, measured in kilocalories (`kcal`).
      * 
* * @@ -3340,10 +3276,7 @@ public boolean hasEnergyFromFat() { * * *
-     * Optional. Value representing the energy from fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The energy from fat, measured in kilocalories (`kcal`).
      * 
* * @@ -3366,10 +3299,7 @@ public com.google.devicesandservices.health.v4.EnergyQuantity getEnergyFromFat() * * *
-     * Optional. Value representing the energy from fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The energy from fat, measured in kilocalories (`kcal`).
      * 
* * @@ -3394,10 +3324,7 @@ public Builder setEnergyFromFat(com.google.devicesandservices.health.v4.EnergyQu * * *
-     * Optional. Value representing the energy from fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The energy from fat, measured in kilocalories (`kcal`).
      * 
* * @@ -3420,10 +3347,7 @@ public Builder setEnergyFromFat( * * *
-     * Optional. Value representing the energy from fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The energy from fat, measured in kilocalories (`kcal`).
      * 
* * @@ -3455,10 +3379,7 @@ public Builder mergeEnergyFromFat( * * *
-     * Optional. Value representing the energy from fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The energy from fat, measured in kilocalories (`kcal`).
      * 
* * @@ -3480,10 +3401,7 @@ public Builder clearEnergyFromFat() { * * *
-     * Optional. Value representing the energy from fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The energy from fat, measured in kilocalories (`kcal`).
      * 
* * @@ -3501,10 +3419,7 @@ public Builder clearEnergyFromFat() { * * *
-     * Optional. Value representing the energy from fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The energy from fat, measured in kilocalories (`kcal`).
      * 
* * @@ -3526,10 +3441,7 @@ public Builder clearEnergyFromFat() { * * *
-     * Optional. Value representing the energy from fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The energy from fat, measured in kilocalories (`kcal`).
      * 
* * @@ -3564,10 +3476,7 @@ public Builder clearEnergyFromFat() { * * *
-     * Optional. Value representing the total carbohydrate of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total carbohydrate content, measured in grams.
      * 
* * @@ -3584,10 +3493,7 @@ public boolean hasTotalCarbohydrate() { * * *
-     * Optional. Value representing the total carbohydrate of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total carbohydrate content, measured in grams.
      * 
* * @@ -3610,10 +3516,7 @@ public com.google.devicesandservices.health.v4.WeightQuantity getTotalCarbohydra * * *
-     * Optional. Value representing the total carbohydrate of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total carbohydrate content, measured in grams.
      * 
* * @@ -3639,10 +3542,7 @@ public Builder setTotalCarbohydrate( * * *
-     * Optional. Value representing the total carbohydrate of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total carbohydrate content, measured in grams.
      * 
* * @@ -3665,10 +3565,7 @@ public Builder setTotalCarbohydrate( * * *
-     * Optional. Value representing the total carbohydrate of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total carbohydrate content, measured in grams.
      * 
* * @@ -3700,10 +3597,7 @@ public Builder mergeTotalCarbohydrate( * * *
-     * Optional. Value representing the total carbohydrate of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total carbohydrate content, measured in grams.
      * 
* * @@ -3725,10 +3619,7 @@ public Builder clearTotalCarbohydrate() { * * *
-     * Optional. Value representing the total carbohydrate of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total carbohydrate content, measured in grams.
      * 
* * @@ -3746,10 +3637,7 @@ public Builder clearTotalCarbohydrate() { * * *
-     * Optional. Value representing the total carbohydrate of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total carbohydrate content, measured in grams.
      * 
* * @@ -3771,10 +3659,7 @@ public Builder clearTotalCarbohydrate() { * * *
-     * Optional. Value representing the total carbohydrate of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total carbohydrate content, measured in grams.
      * 
* * @@ -3809,10 +3694,7 @@ public Builder clearTotalCarbohydrate() { * * *
-     * Optional. Value representing the total fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total fat content, measured in grams.
      * 
* * @@ -3829,10 +3711,7 @@ public boolean hasTotalFat() { * * *
-     * Optional. Value representing the total fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total fat content, measured in grams.
      * 
* * @@ -3855,10 +3734,7 @@ public com.google.devicesandservices.health.v4.WeightQuantity getTotalFat() { * * *
-     * Optional. Value representing the total fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total fat content, measured in grams.
      * 
* * @@ -3883,10 +3759,7 @@ public Builder setTotalFat(com.google.devicesandservices.health.v4.WeightQuantit * * *
-     * Optional. Value representing the total fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total fat content, measured in grams.
      * 
* * @@ -3909,10 +3782,7 @@ public Builder setTotalFat( * * *
-     * Optional. Value representing the total fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total fat content, measured in grams.
      * 
* * @@ -3943,10 +3813,7 @@ public Builder mergeTotalFat(com.google.devicesandservices.health.v4.WeightQuant * * *
-     * Optional. Value representing the total fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total fat content, measured in grams.
      * 
* * @@ -3968,10 +3835,7 @@ public Builder clearTotalFat() { * * *
-     * Optional. Value representing the total fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total fat content, measured in grams.
      * 
* * @@ -3988,10 +3852,7 @@ public com.google.devicesandservices.health.v4.WeightQuantity.Builder getTotalFa * * *
-     * Optional. Value representing the total fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total fat content, measured in grams.
      * 
* * @@ -4012,10 +3873,7 @@ public com.google.devicesandservices.health.v4.WeightQuantityOrBuilder getTotalF * * *
-     * Optional. Value representing the total fat of the nutrition log.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * Optional. The total fat content, measured in grams.
      * 
* * @@ -4045,7 +3903,8 @@ public com.google.devicesandservices.health.v4.WeightQuantityOrBuilder getTotalF * * *
-     * Optional. Value representing the meal type of the nutrition log.
+     * Optional. The meal category. One of `BREAKFAST`, `LUNCH`, `DINNER`, or
+     * `SNACK`.
      * 
* * @@ -4063,7 +3922,8 @@ public int getMealTypeValue() { * * *
-     * Optional. Value representing the meal type of the nutrition log.
+     * Optional. The meal category. One of `BREAKFAST`, `LUNCH`, `DINNER`, or
+     * `SNACK`.
      * 
* * @@ -4084,7 +3944,8 @@ public Builder setMealTypeValue(int value) { * * *
-     * Optional. Value representing the meal type of the nutrition log.
+     * Optional. The meal category. One of `BREAKFAST`, `LUNCH`, `DINNER`, or
+     * `SNACK`.
      * 
* * @@ -4106,7 +3967,8 @@ public com.google.devicesandservices.health.v4.MealType getMealType() { * * *
-     * Optional. Value representing the meal type of the nutrition log.
+     * Optional. The meal category. One of `BREAKFAST`, `LUNCH`, `DINNER`, or
+     * `SNACK`.
      * 
* * @@ -4130,7 +3992,8 @@ public Builder setMealType(com.google.devicesandservices.health.v4.MealType valu * * *
-     * Optional. Value representing the meal type of the nutrition log.
+     * Optional. The meal category. One of `BREAKFAST`, `LUNCH`, `DINNER`, or
+     * `SNACK`.
      * 
* * @@ -4157,7 +4020,7 @@ public Builder clearMealType() { * * *
-     * Optional. Value representing the nutrition log serving.
+     * Optional. The serving information for the logged food.
      * 
* * @@ -4174,7 +4037,7 @@ public boolean hasServing() { * * *
-     * Optional. Value representing the nutrition log serving.
+     * Optional. The serving information for the logged food.
      * 
* * @@ -4197,7 +4060,7 @@ public com.google.devicesandservices.health.v4.NutritionLog.Serving getServing() * * *
-     * Optional. Value representing the nutrition log serving.
+     * Optional. The serving information for the logged food.
      * 
* * @@ -4222,7 +4085,7 @@ public Builder setServing(com.google.devicesandservices.health.v4.NutritionLog.S * * *
-     * Optional. Value representing the nutrition log serving.
+     * Optional. The serving information for the logged food.
      * 
* * @@ -4245,7 +4108,7 @@ public Builder setServing( * * *
-     * Optional. Value representing the nutrition log serving.
+     * Optional. The serving information for the logged food.
      * 
* * @@ -4278,7 +4141,7 @@ public Builder mergeServing( * * *
-     * Optional. Value representing the nutrition log serving.
+     * Optional. The serving information for the logged food.
      * 
* * @@ -4300,7 +4163,7 @@ public Builder clearServing() { * * *
-     * Optional. Value representing the nutrition log serving.
+     * Optional. The serving information for the logged food.
      * 
* * @@ -4318,7 +4181,7 @@ public Builder clearServing() { * * *
-     * Optional. Value representing the nutrition log serving.
+     * Optional. The serving information for the logged food.
      * 
* * @@ -4340,7 +4203,7 @@ public Builder clearServing() { * * *
-     * Optional. Value representing the nutrition log serving.
+     * Optional. The serving information for the logged food.
      * 
* * @@ -4370,11 +4233,13 @@ public Builder clearServing() { * * *
-     * Required. Represents the food ID.
+     * Optional. The resource name of the Food item. Required when creating a
+     * nutrition log from an identified food. For anonymous food logs, use the
+     * `food_display_name` field instead.
      * 
* * - * string food = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string food = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The food. @@ -4395,11 +4260,13 @@ public java.lang.String getFood() { * * *
-     * Required. Represents the food ID.
+     * Optional. The resource name of the Food item. Required when creating a
+     * nutrition log from an identified food. For anonymous food logs, use the
+     * `food_display_name` field instead.
      * 
* * - * string food = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string food = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for food. @@ -4420,11 +4287,13 @@ public com.google.protobuf.ByteString getFoodBytes() { * * *
-     * Required. Represents the food ID.
+     * Optional. The resource name of the Food item. Required when creating a
+     * nutrition log from an identified food. For anonymous food logs, use the
+     * `food_display_name` field instead.
      * 
* * - * string food = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string food = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The food to set. @@ -4444,11 +4313,13 @@ public Builder setFood(java.lang.String value) { * * *
-     * Required. Represents the food ID.
+     * Optional. The resource name of the Food item. Required when creating a
+     * nutrition log from an identified food. For anonymous food logs, use the
+     * `food_display_name` field instead.
      * 
* * - * string food = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string food = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -4464,11 +4335,13 @@ public Builder clearFood() { * * *
-     * Required. Represents the food ID.
+     * Optional. The resource name of the Food item. Required when creating a
+     * nutrition log from an identified food. For anonymous food logs, use the
+     * `food_display_name` field instead.
      * 
* * - * string food = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string food = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The bytes for food to set. @@ -4491,10 +4364,8 @@ public Builder setFoodBytes(com.google.protobuf.ByteString value) { * * *
-     * Value representing the display name of the food.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * The display name of the food. For identified food logs, this is populated
+     * automatically from the referenced food.
      * 
* * string food_display_name = 16; @@ -4517,10 +4388,8 @@ public java.lang.String getFoodDisplayName() { * * *
-     * Value representing the display name of the food.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * The display name of the food. For identified food logs, this is populated
+     * automatically from the referenced food.
      * 
* * string food_display_name = 16; @@ -4543,10 +4412,8 @@ public com.google.protobuf.ByteString getFoodDisplayNameBytes() { * * *
-     * Value representing the display name of the food.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * The display name of the food. For identified food logs, this is populated
+     * automatically from the referenced food.
      * 
* * string food_display_name = 16; @@ -4568,10 +4435,8 @@ public Builder setFoodDisplayName(java.lang.String value) { * * *
-     * Value representing the display name of the food.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * The display name of the food. For identified food logs, this is populated
+     * automatically from the referenced food.
      * 
* * string food_display_name = 16; @@ -4589,10 +4454,8 @@ public Builder clearFoodDisplayName() { * * *
-     * Value representing the display name of the food.
-     * For nutrition logs created from an identified food, this field will be
-     * populated based on the referenced food. For anonymous food, this field will
-     * be populated manually.
+     * The display name of the food. For identified food logs, this is populated
+     * automatically from the referenced food.
      * 
* * string food_display_name = 16; diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/NutritionLogOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/NutritionLogOrBuilder.java index d777433c6f8c..58498df1efad 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/NutritionLogOrBuilder.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/NutritionLogOrBuilder.java @@ -30,7 +30,7 @@ public interface NutritionLogOrBuilder * * *
-   * Required. Observed interval.
+   * Required. The time window when the food was logged.
    * 
* * @@ -45,7 +45,7 @@ public interface NutritionLogOrBuilder * * *
-   * Required. Observed interval.
+   * Required. The time window when the food was logged.
    * 
* * @@ -60,7 +60,7 @@ public interface NutritionLogOrBuilder * * *
-   * Required. Observed interval.
+   * Required. The time window when the food was logged.
    * 
* * @@ -73,7 +73,7 @@ public interface NutritionLogOrBuilder * * *
-   * Optional. Value representing the nutrients of the nutrition log.
+   * Optional. An array of individual nutrient values for the nutrition log.
    * 
* * @@ -86,7 +86,7 @@ public interface NutritionLogOrBuilder * * *
-   * Optional. Value representing the nutrients of the nutrition log.
+   * Optional. An array of individual nutrient values for the nutrition log.
    * 
* * @@ -99,7 +99,7 @@ public interface NutritionLogOrBuilder * * *
-   * Optional. Value representing the nutrients of the nutrition log.
+   * Optional. An array of individual nutrient values for the nutrition log.
    * 
* * @@ -112,7 +112,7 @@ public interface NutritionLogOrBuilder * * *
-   * Optional. Value representing the nutrients of the nutrition log.
+   * Optional. An array of individual nutrient values for the nutrition log.
    * 
* * @@ -126,7 +126,7 @@ public interface NutritionLogOrBuilder * * *
-   * Optional. Value representing the nutrients of the nutrition log.
+   * Optional. An array of individual nutrient values for the nutrition log.
    * 
* * @@ -140,10 +140,7 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Optional. Value representing the energy of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total energy of the food, measured in kilocalories (`kcal`).
    * 
* * @@ -158,10 +155,7 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Optional. Value representing the energy of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total energy of the food, measured in kilocalories (`kcal`).
    * 
* * @@ -176,10 +170,7 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Optional. Value representing the energy of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total energy of the food, measured in kilocalories (`kcal`).
    * 
* * @@ -192,10 +183,7 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Optional. Value representing the energy from fat of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The energy from fat, measured in kilocalories (`kcal`).
    * 
* * @@ -210,10 +198,7 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Optional. Value representing the energy from fat of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The energy from fat, measured in kilocalories (`kcal`).
    * 
* * @@ -228,10 +213,7 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Optional. Value representing the energy from fat of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The energy from fat, measured in kilocalories (`kcal`).
    * 
* * @@ -244,10 +226,7 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Optional. Value representing the total carbohydrate of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total carbohydrate content, measured in grams.
    * 
* * @@ -262,10 +241,7 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Optional. Value representing the total carbohydrate of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total carbohydrate content, measured in grams.
    * 
* * @@ -280,10 +256,7 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Optional. Value representing the total carbohydrate of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total carbohydrate content, measured in grams.
    * 
* * @@ -296,10 +269,7 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Optional. Value representing the total fat of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total fat content, measured in grams.
    * 
* * @@ -314,10 +284,7 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Optional. Value representing the total fat of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total fat content, measured in grams.
    * 
* * @@ -332,10 +299,7 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Optional. Value representing the total fat of the nutrition log.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * Optional. The total fat content, measured in grams.
    * 
* * @@ -348,7 +312,8 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Optional. Value representing the meal type of the nutrition log.
+   * Optional. The meal category. One of `BREAKFAST`, `LUNCH`, `DINNER`, or
+   * `SNACK`.
    * 
* * @@ -363,7 +328,8 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Optional. Value representing the meal type of the nutrition log.
+   * Optional. The meal category. One of `BREAKFAST`, `LUNCH`, `DINNER`, or
+   * `SNACK`.
    * 
* * @@ -378,7 +344,7 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Optional. Value representing the nutrition log serving.
+   * Optional. The serving information for the logged food.
    * 
* * @@ -393,7 +359,7 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Optional. Value representing the nutrition log serving.
+   * Optional. The serving information for the logged food.
    * 
* * @@ -408,7 +374,7 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Optional. Value representing the nutrition log serving.
+   * Optional. The serving information for the logged food.
    * 
* * @@ -421,11 +387,13 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Required. Represents the food ID.
+   * Optional. The resource name of the Food item. Required when creating a
+   * nutrition log from an identified food. For anonymous food logs, use the
+   * `food_display_name` field instead.
    * 
* * - * string food = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string food = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The food. @@ -436,11 +404,13 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Required. Represents the food ID.
+   * Optional. The resource name of the Food item. Required when creating a
+   * nutrition log from an identified food. For anonymous food logs, use the
+   * `food_display_name` field instead.
    * 
* * - * string food = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string food = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for food. @@ -451,10 +421,8 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Value representing the display name of the food.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * The display name of the food. For identified food logs, this is populated
+   * automatically from the referenced food.
    * 
* * string food_display_name = 16; @@ -467,10 +435,8 @@ com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder getNutrientsOr * * *
-   * Value representing the display name of the food.
-   * For nutrition logs created from an identified food, this field will be
-   * populated based on the referenced food. For anonymous food, this field will
-   * be populated manually.
+   * The display name of the food. For identified food logs, this is populated
+   * automatically from the referenced food.
    * 
* * string food_display_name = 16; diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/OvulationTest.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/OvulationTest.java new file mode 100644 index 000000000000..6c21908dc7da --- /dev/null +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/OvulationTest.java @@ -0,0 +1,911 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/devicesandservices/health/v4/data_model.proto +// Protobuf Java Version: 4.33.6 + +package com.google.devicesandservices.health.v4; + +/** + * + * + *
+ * Ovulation test record.
+ * 
+ * + * Protobuf type {@code google.devicesandservices.health.v4.OvulationTest} + */ +@com.google.protobuf.Generated +public final class OvulationTest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.devicesandservices.health.v4.OvulationTest) + OvulationTestOrBuilder { + 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= */ "", + "OvulationTest"); + } + + // Use OvulationTest.newBuilder() to construct. + private OvulationTest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OvulationTest() { + result_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_OvulationTest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_OvulationTest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devicesandservices.health.v4.OvulationTest.class, + com.google.devicesandservices.health.v4.OvulationTest.Builder.class); + } + + private int bitField0_; + public static final int SAMPLE_TIME_FIELD_NUMBER = 2; + private com.google.devicesandservices.health.v4.ObservationSampleTime sampleTime_; + + /** + * + * + *
+   * Required. The time at which ovulation test was measured.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleTime field is set. + */ + @java.lang.Override + public boolean hasSampleTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The time at which ovulation test was measured.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleTime. + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.ObservationSampleTime getSampleTime() { + return sampleTime_ == null + ? com.google.devicesandservices.health.v4.ObservationSampleTime.getDefaultInstance() + : sampleTime_; + } + + /** + * + * + *
+   * Required. The time at which ovulation test was measured.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder + getSampleTimeOrBuilder() { + return sampleTime_ == null + ? com.google.devicesandservices.health.v4.ObservationSampleTime.getDefaultInstance() + : sampleTime_; + } + + public static final int RESULT_FIELD_NUMBER = 3; + private int result_ = 0; + + /** + * + * + *
+   * Required. The result of the ovulation test.
+   * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTestResult result = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override + public int getResultValue() { + return result_; + } + + /** + * + * + *
+   * Required. The result of the ovulation test.
+   * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTestResult result = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The result. + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.OvulationTestResult getResult() { + com.google.devicesandservices.health.v4.OvulationTestResult result = + com.google.devicesandservices.health.v4.OvulationTestResult.forNumber(result_); + return result == null + ? com.google.devicesandservices.health.v4.OvulationTestResult.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSampleTime()); + } + if (result_ + != com.google.devicesandservices.health.v4.OvulationTestResult + .OVULATION_TEST_RESULT_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, result_); + } + 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(2, getSampleTime()); + } + if (result_ + != com.google.devicesandservices.health.v4.OvulationTestResult + .OVULATION_TEST_RESULT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, result_); + } + 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.devicesandservices.health.v4.OvulationTest)) { + return super.equals(obj); + } + com.google.devicesandservices.health.v4.OvulationTest other = + (com.google.devicesandservices.health.v4.OvulationTest) obj; + + if (hasSampleTime() != other.hasSampleTime()) return false; + if (hasSampleTime()) { + if (!getSampleTime().equals(other.getSampleTime())) return false; + } + if (result_ != other.result_) 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 (hasSampleTime()) { + hash = (37 * hash) + SAMPLE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getSampleTime().hashCode(); + } + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + result_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devicesandservices.health.v4.OvulationTest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devicesandservices.health.v4.OvulationTest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devicesandservices.health.v4.OvulationTest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devicesandservices.health.v4.OvulationTest 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.devicesandservices.health.v4.OvulationTest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devicesandservices.health.v4.OvulationTest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devicesandservices.health.v4.OvulationTest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.devicesandservices.health.v4.OvulationTest 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.devicesandservices.health.v4.OvulationTest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devicesandservices.health.v4.OvulationTest 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.devicesandservices.health.v4.OvulationTest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.devicesandservices.health.v4.OvulationTest 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.devicesandservices.health.v4.OvulationTest 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; + } + + /** + * + * + *
+   * Ovulation test record.
+   * 
+ * + * Protobuf type {@code google.devicesandservices.health.v4.OvulationTest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devicesandservices.health.v4.OvulationTest) + com.google.devicesandservices.health.v4.OvulationTestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_OvulationTest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_OvulationTest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devicesandservices.health.v4.OvulationTest.class, + com.google.devicesandservices.health.v4.OvulationTest.Builder.class); + } + + // Construct using com.google.devicesandservices.health.v4.OvulationTest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSampleTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sampleTime_ = null; + if (sampleTimeBuilder_ != null) { + sampleTimeBuilder_.dispose(); + sampleTimeBuilder_ = null; + } + result_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_OvulationTest_descriptor; + } + + @java.lang.Override + public com.google.devicesandservices.health.v4.OvulationTest getDefaultInstanceForType() { + return com.google.devicesandservices.health.v4.OvulationTest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devicesandservices.health.v4.OvulationTest build() { + com.google.devicesandservices.health.v4.OvulationTest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devicesandservices.health.v4.OvulationTest buildPartial() { + com.google.devicesandservices.health.v4.OvulationTest result = + new com.google.devicesandservices.health.v4.OvulationTest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.devicesandservices.health.v4.OvulationTest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sampleTime_ = sampleTimeBuilder_ == null ? sampleTime_ : sampleTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.result_ = result_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devicesandservices.health.v4.OvulationTest) { + return mergeFrom((com.google.devicesandservices.health.v4.OvulationTest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devicesandservices.health.v4.OvulationTest other) { + if (other == com.google.devicesandservices.health.v4.OvulationTest.getDefaultInstance()) + return this; + if (other.hasSampleTime()) { + mergeSampleTime(other.getSampleTime()); + } + if (other.result_ != 0) { + setResultValue(other.getResultValue()); + } + 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: + { + input.readMessage( + internalGetSampleTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 24: + { + result_ = input.readEnum(); + bitField0_ |= 0x00000002; + 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 com.google.devicesandservices.health.v4.ObservationSampleTime sampleTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.ObservationSampleTime, + com.google.devicesandservices.health.v4.ObservationSampleTime.Builder, + com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder> + sampleTimeBuilder_; + + /** + * + * + *
+     * Required. The time at which ovulation test was measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleTime field is set. + */ + public boolean hasSampleTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The time at which ovulation test was measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleTime. + */ + public com.google.devicesandservices.health.v4.ObservationSampleTime getSampleTime() { + if (sampleTimeBuilder_ == null) { + return sampleTime_ == null + ? com.google.devicesandservices.health.v4.ObservationSampleTime.getDefaultInstance() + : sampleTime_; + } else { + return sampleTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The time at which ovulation test was measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleTime( + com.google.devicesandservices.health.v4.ObservationSampleTime value) { + if (sampleTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sampleTime_ = value; + } else { + sampleTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The time at which ovulation test was measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleTime( + com.google.devicesandservices.health.v4.ObservationSampleTime.Builder builderForValue) { + if (sampleTimeBuilder_ == null) { + sampleTime_ = builderForValue.build(); + } else { + sampleTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The time at which ovulation test was measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSampleTime( + com.google.devicesandservices.health.v4.ObservationSampleTime value) { + if (sampleTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && sampleTime_ != null + && sampleTime_ + != com.google.devicesandservices.health.v4.ObservationSampleTime + .getDefaultInstance()) { + getSampleTimeBuilder().mergeFrom(value); + } else { + sampleTime_ = value; + } + } else { + sampleTimeBuilder_.mergeFrom(value); + } + if (sampleTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The time at which ovulation test was measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSampleTime() { + bitField0_ = (bitField0_ & ~0x00000001); + sampleTime_ = null; + if (sampleTimeBuilder_ != null) { + sampleTimeBuilder_.dispose(); + sampleTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The time at which ovulation test was measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.devicesandservices.health.v4.ObservationSampleTime.Builder + getSampleTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSampleTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The time at which ovulation test was measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder + getSampleTimeOrBuilder() { + if (sampleTimeBuilder_ != null) { + return sampleTimeBuilder_.getMessageOrBuilder(); + } else { + return sampleTime_ == null + ? com.google.devicesandservices.health.v4.ObservationSampleTime.getDefaultInstance() + : sampleTime_; + } + } + + /** + * + * + *
+     * Required. The time at which ovulation test was measured.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.ObservationSampleTime, + com.google.devicesandservices.health.v4.ObservationSampleTime.Builder, + com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder> + internalGetSampleTimeFieldBuilder() { + if (sampleTimeBuilder_ == null) { + sampleTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.ObservationSampleTime, + com.google.devicesandservices.health.v4.ObservationSampleTime.Builder, + com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder>( + getSampleTime(), getParentForChildren(), isClean()); + sampleTime_ = null; + } + return sampleTimeBuilder_; + } + + private int result_ = 0; + + /** + * + * + *
+     * Required. The result of the ovulation test.
+     * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTestResult result = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override + public int getResultValue() { + return result_; + } + + /** + * + * + *
+     * Required. The result of the ovulation test.
+     * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTestResult result = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for result to set. + * @return This builder for chaining. + */ + public Builder setResultValue(int value) { + result_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The result of the ovulation test.
+     * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTestResult result = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The result. + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.OvulationTestResult getResult() { + com.google.devicesandservices.health.v4.OvulationTestResult result = + com.google.devicesandservices.health.v4.OvulationTestResult.forNumber(result_); + return result == null + ? com.google.devicesandservices.health.v4.OvulationTestResult.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. The result of the ovulation test.
+     * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTestResult result = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The result to set. + * @return This builder for chaining. + */ + public Builder setResult(com.google.devicesandservices.health.v4.OvulationTestResult value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + result_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The result of the ovulation test.
+     * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTestResult result = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearResult() { + bitField0_ = (bitField0_ & ~0x00000002); + result_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.devicesandservices.health.v4.OvulationTest) + } + + // @@protoc_insertion_point(class_scope:google.devicesandservices.health.v4.OvulationTest) + private static final com.google.devicesandservices.health.v4.OvulationTest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devicesandservices.health.v4.OvulationTest(); + } + + public static com.google.devicesandservices.health.v4.OvulationTest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OvulationTest 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.devicesandservices.health.v4.OvulationTest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/OvulationTestOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/OvulationTestOrBuilder.java new file mode 100644 index 000000000000..cf259af90f1e --- /dev/null +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/OvulationTestOrBuilder.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/devicesandservices/health/v4/data_model.proto +// Protobuf Java Version: 4.33.6 + +package com.google.devicesandservices.health.v4; + +@com.google.protobuf.Generated +public interface OvulationTestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devicesandservices.health.v4.OvulationTest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The time at which ovulation test was measured.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleTime field is set. + */ + boolean hasSampleTime(); + + /** + * + * + *
+   * Required. The time at which ovulation test was measured.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleTime. + */ + com.google.devicesandservices.health.v4.ObservationSampleTime getSampleTime(); + + /** + * + * + *
+   * Required. The time at which ovulation test was measured.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder getSampleTimeOrBuilder(); + + /** + * + * + *
+   * Required. The result of the ovulation test.
+   * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTestResult result = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for result. + */ + int getResultValue(); + + /** + * + * + *
+   * Required. The result of the ovulation test.
+   * 
+ * + * + * .google.devicesandservices.health.v4.OvulationTestResult result = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The result. + */ + com.google.devicesandservices.health.v4.OvulationTestResult getResult(); +} diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/OvulationTestResult.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/OvulationTestResult.java new file mode 100644 index 000000000000..87832128980f --- /dev/null +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/OvulationTestResult.java @@ -0,0 +1,265 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/devicesandservices/health/v4/data_model.proto +// Protobuf Java Version: 4.33.6 + +package com.google.devicesandservices.health.v4; + +/** + * + * + *
+ * Ovulation test result.
+ * 
+ * + * Protobuf enum {@code google.devicesandservices.health.v4.OvulationTestResult} + */ +@com.google.protobuf.Generated +public enum OvulationTestResult implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified result.
+   * 
+ * + * OVULATION_TEST_RESULT_UNSPECIFIED = 0; + */ + OVULATION_TEST_RESULT_UNSPECIFIED(0), + /** + * + * + *
+   * Negative result.
+   * 
+ * + * NEGATIVE = 1; + */ + NEGATIVE(1), + /** + * + * + *
+   * Luteinizing hormone surge.
+   * 
+ * + * LUTEINIZING_HORMONE_SURGE = 2; + */ + LUTEINIZING_HORMONE_SURGE(2), + /** + * + * + *
+   * Estrogen surge.
+   * 
+ * + * ESTROGEN_SURGE = 3; + */ + ESTROGEN_SURGE(3), + /** + * + * + *
+   * Positive result.
+   * 
+ * + * POSITIVE = 4; + */ + POSITIVE(4), + /** + * + * + *
+   * Indeterminate result.
+   * 
+ * + * INDETERMINATE = 5; + */ + INDETERMINATE(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "OvulationTestResult"); + } + + /** + * + * + *
+   * Unspecified result.
+   * 
+ * + * OVULATION_TEST_RESULT_UNSPECIFIED = 0; + */ + public static final int OVULATION_TEST_RESULT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Negative result.
+   * 
+ * + * NEGATIVE = 1; + */ + public static final int NEGATIVE_VALUE = 1; + + /** + * + * + *
+   * Luteinizing hormone surge.
+   * 
+ * + * LUTEINIZING_HORMONE_SURGE = 2; + */ + public static final int LUTEINIZING_HORMONE_SURGE_VALUE = 2; + + /** + * + * + *
+   * Estrogen surge.
+   * 
+ * + * ESTROGEN_SURGE = 3; + */ + public static final int ESTROGEN_SURGE_VALUE = 3; + + /** + * + * + *
+   * Positive result.
+   * 
+ * + * POSITIVE = 4; + */ + public static final int POSITIVE_VALUE = 4; + + /** + * + * + *
+   * Indeterminate result.
+   * 
+ * + * INDETERMINATE = 5; + */ + public static final int INDETERMINATE_VALUE = 5; + + 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 OvulationTestResult 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 OvulationTestResult forNumber(int value) { + switch (value) { + case 0: + return OVULATION_TEST_RESULT_UNSPECIFIED; + case 1: + return NEGATIVE; + case 2: + return LUTEINIZING_HORMONE_SURGE; + case 3: + return ESTROGEN_SURGE; + case 4: + return POSITIVE; + case 5: + return INDETERMINATE; + 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 OvulationTestResult findValueByNumber(int number) { + return OvulationTestResult.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.devicesandservices.health.v4.DataModelProto.getDescriptor() + .getEnumTypes() + .get(7); + } + + private static final OvulationTestResult[] VALUES = values(); + + public static OvulationTestResult 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 OvulationTestResult(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.devicesandservices.health.v4.OvulationTestResult) +} diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ReconcileDataPointsRequest.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ReconcileDataPointsRequest.java index 37e808b0c7c4..75f78307e72e 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ReconcileDataPointsRequest.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ReconcileDataPointsRequest.java @@ -301,12 +301,14 @@ public com.google.protobuf.ByteString getFilterBytes() { * * Format: `users/me/dataSourceFamilies/{data_source_family}` * - * The supported values are: - * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -336,12 +338,14 @@ public java.lang.String getDataSourceFamily() { * * Format: `users/me/dataSourceFamilies/{data_source_family}` * - * The supported values are: - * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1265,12 +1269,14 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * Format: `users/me/dataSourceFamilies/{data_source_family}` * - * The supported values are: - * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1299,12 +1305,14 @@ public java.lang.String getDataSourceFamily() { * * Format: `users/me/dataSourceFamilies/{data_source_family}` * - * The supported values are: - * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1333,12 +1341,14 @@ public com.google.protobuf.ByteString getDataSourceFamilyBytes() { * * Format: `users/me/dataSourceFamilies/{data_source_family}` * - * The supported values are: - * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1366,12 +1376,14 @@ public Builder setDataSourceFamily(java.lang.String value) { * * Format: `users/me/dataSourceFamilies/{data_source_family}` * - * The supported values are: - * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1395,12 +1407,14 @@ public Builder clearDataSourceFamily() { * * Format: `users/me/dataSourceFamilies/{data_source_family}` * - * The supported values are: - * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ReconcileDataPointsRequestOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ReconcileDataPointsRequestOrBuilder.java index 2737ff4aacbe..ec7a9cdfd722 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ReconcileDataPointsRequestOrBuilder.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ReconcileDataPointsRequestOrBuilder.java @@ -162,12 +162,14 @@ public interface ReconcileDataPointsRequestOrBuilder * * Format: `users/me/dataSourceFamilies/{data_source_family}` * - * The supported values are: - * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -186,12 +188,14 @@ public interface ReconcileDataPointsRequestOrBuilder * * Format: `users/me/dataSourceFamilies/{data_source_family}` * - * The supported values are: - * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ReconciledDataPoint.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ReconciledDataPoint.java index fceac2751ff5..33035d3ec01a 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ReconciledDataPoint.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ReconciledDataPoint.java @@ -2177,7 +2177,7 @@ public com.google.devicesandservices.health.v4.BloodGlucoseOrBuilder getBloodGlu * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, @@ -2220,7 +2220,7 @@ public java.lang.String getDataPointName() { * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, @@ -11542,7 +11542,7 @@ public com.google.devicesandservices.health.v4.BloodGlucose.Builder getBloodGluc * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, @@ -11584,7 +11584,7 @@ public java.lang.String getDataPointName() { * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, @@ -11626,7 +11626,7 @@ public com.google.protobuf.ByteString getDataPointNameBytes() { * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, @@ -11667,7 +11667,7 @@ public Builder setDataPointName(java.lang.String value) { * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, @@ -11704,7 +11704,7 @@ public Builder clearDataPointName() { * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ReconciledDataPointOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ReconciledDataPointOrBuilder.java index 5902514bbd31..795d75b63e60 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ReconciledDataPointOrBuilder.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/ReconciledDataPointOrBuilder.java @@ -1396,7 +1396,7 @@ public interface ReconciledDataPointOrBuilder * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, @@ -1428,7 +1428,7 @@ public interface ReconciledDataPointOrBuilder * The `{data_type}` ID corresponds to the kebab-case version of the field * names in the [DataPoint * data][google.devicesandservices.health.v4.DataPoint] union - * field, e.g. `total-calories` for the `total_calories` field. + * field, e.g. `heart-rate` for the `heart_rate` field. * * The `{data_point}` ID can be client-provided or system-generated. * If client-provided, it must be a string of 4-63 characters, diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/RollUpDataPointsRequest.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/RollUpDataPointsRequest.java index 3cf7de91a2dd..805e8cd13f9c 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/RollUpDataPointsRequest.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/RollUpDataPointsRequest.java @@ -214,7 +214,7 @@ public com.google.type.IntervalOrBuilder getRangeOrBuilder() { * *
    * Required. The size of the time window to group data points into before
-   * applying the aggregation functions.
+   * applying the aggregation functions. Must be at least 1 second.
    * 
* * .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -232,7 +232,7 @@ public boolean hasWindowSize() { * *
    * Required. The size of the time window to group data points into before
-   * applying the aggregation functions.
+   * applying the aggregation functions. Must be at least 1 second.
    * 
* * .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -250,7 +250,7 @@ public com.google.protobuf.Duration getWindowSize() { * *
    * Required. The size of the time window to group data points into before
-   * applying the aggregation functions.
+   * applying the aggregation functions. Must be at least 1 second.
    * 
* * .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -357,10 +357,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -392,10 +396,14 @@ public java.lang.String getDataSourceFamily() { * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1271,7 +1279,7 @@ public com.google.type.IntervalOrBuilder getRangeOrBuilder() { * *
      * Required. The size of the time window to group data points into before
-     * applying the aggregation functions.
+     * applying the aggregation functions. Must be at least 1 second.
      * 
* * .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1288,7 +1296,7 @@ public boolean hasWindowSize() { * *
      * Required. The size of the time window to group data points into before
-     * applying the aggregation functions.
+     * applying the aggregation functions. Must be at least 1 second.
      * 
* * .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1311,7 +1319,7 @@ public com.google.protobuf.Duration getWindowSize() { * *
      * Required. The size of the time window to group data points into before
-     * applying the aggregation functions.
+     * applying the aggregation functions. Must be at least 1 second.
      * 
* * .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1336,7 +1344,7 @@ public Builder setWindowSize(com.google.protobuf.Duration value) { * *
      * Required. The size of the time window to group data points into before
-     * applying the aggregation functions.
+     * applying the aggregation functions. Must be at least 1 second.
      * 
* * .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1358,7 +1366,7 @@ public Builder setWindowSize(com.google.protobuf.Duration.Builder builderForValu * *
      * Required. The size of the time window to group data points into before
-     * applying the aggregation functions.
+     * applying the aggregation functions. Must be at least 1 second.
      * 
* * .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1388,7 +1396,7 @@ public Builder mergeWindowSize(com.google.protobuf.Duration value) { * *
      * Required. The size of the time window to group data points into before
-     * applying the aggregation functions.
+     * applying the aggregation functions. Must be at least 1 second.
      * 
* * .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1410,7 +1418,7 @@ public Builder clearWindowSize() { * *
      * Required. The size of the time window to group data points into before
-     * applying the aggregation functions.
+     * applying the aggregation functions. Must be at least 1 second.
      * 
* * .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1427,7 +1435,7 @@ public com.google.protobuf.Duration.Builder getWindowSizeBuilder() { * *
      * Required. The size of the time window to group data points into before
-     * applying the aggregation functions.
+     * applying the aggregation functions. Must be at least 1 second.
      * 
* * .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1448,7 +1456,7 @@ public com.google.protobuf.DurationOrBuilder getWindowSizeOrBuilder() { * *
      * Required. The size of the time window to group data points into before
-     * applying the aggregation functions.
+     * applying the aggregation functions. Must be at least 1 second.
      * 
* * .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1671,10 +1679,14 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1705,10 +1717,14 @@ public java.lang.String getDataSourceFamily() { * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1739,10 +1755,14 @@ public com.google.protobuf.ByteString getDataSourceFamilyBytes() { * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1772,10 +1792,14 @@ public Builder setDataSourceFamily(java.lang.String value) { * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1801,10 +1825,14 @@ public Builder clearDataSourceFamily() { * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/RollUpDataPointsRequestOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/RollUpDataPointsRequestOrBuilder.java index deb0864225a3..7e4cf30c0804 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/RollUpDataPointsRequestOrBuilder.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/RollUpDataPointsRequestOrBuilder.java @@ -125,7 +125,7 @@ public interface RollUpDataPointsRequestOrBuilder * *
    * Required. The size of the time window to group data points into before
-   * applying the aggregation functions.
+   * applying the aggregation functions. Must be at least 1 second.
    * 
* * .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -140,7 +140,7 @@ public interface RollUpDataPointsRequestOrBuilder * *
    * Required. The size of the time window to group data points into before
-   * applying the aggregation functions.
+   * applying the aggregation functions. Must be at least 1 second.
    * 
* * .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -155,7 +155,7 @@ public interface RollUpDataPointsRequestOrBuilder * *
    * Required. The size of the time window to group data points into before
-   * applying the aggregation functions.
+   * applying the aggregation functions. Must be at least 1 second.
    * 
* * .google.protobuf.Duration window_size = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -221,10 +221,14 @@ public interface RollUpDataPointsRequestOrBuilder * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -245,10 +249,14 @@ public interface RollUpDataPointsRequestOrBuilder * * The supported values are: * - * - `users/me/dataSourceFamilies/all-sources` - default value - * - `users/me/dataSourceFamilies/google-wearables` - tracker devices - * - `users/me/dataSourceFamilies/google-sources` - Google first party - * sources + * - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + * from all available data sources. + * - `users/me/dataSourceFamilies/google-wearables` - Includes data from + * Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + * Watch). Excludes manually logged data. + * - `users/me/dataSourceFamilies/google-sources` - Includes first-party + * Google data, such as data from tracker devices, manually logged data, and + * Health Connect. * * * string data_source_family = 7 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Settings.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Settings.java index 2d40f5594655..7ffa390b6f93 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Settings.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Settings.java @@ -1606,8 +1606,6 @@ public boolean getAutoStrideEnabled() { * *
    * Optional. The measurement unit defined in the user's account settings.
-   *
-   * Updates to this field are currently not supported.
    * 
* * @@ -1626,8 +1624,6 @@ public int getDistanceUnitValue() { * *
    * Optional. The measurement unit defined in the user's account settings.
-   *
-   * Updates to this field are currently not supported.
    * 
* * @@ -3148,8 +3144,6 @@ public Builder clearAutoStrideEnabled() { * *
      * Optional. The measurement unit defined in the user's account settings.
-     *
-     * Updates to this field are currently not supported.
      * 
* * @@ -3168,8 +3162,6 @@ public int getDistanceUnitValue() { * *
      * Optional. The measurement unit defined in the user's account settings.
-     *
-     * Updates to this field are currently not supported.
      * 
* * @@ -3191,8 +3183,6 @@ public Builder setDistanceUnitValue(int value) { * *
      * Optional. The measurement unit defined in the user's account settings.
-     *
-     * Updates to this field are currently not supported.
      * 
* * @@ -3215,8 +3205,6 @@ public com.google.devicesandservices.health.v4.Settings.DistanceUnit getDistance * *
      * Optional. The measurement unit defined in the user's account settings.
-     *
-     * Updates to this field are currently not supported.
      * 
* * @@ -3242,8 +3230,6 @@ public Builder setDistanceUnit( * *
      * Optional. The measurement unit defined in the user's account settings.
-     *
-     * Updates to this field are currently not supported.
      * 
* * diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SettingsOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SettingsOrBuilder.java index 034996534cb9..f7311c6e9a63 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SettingsOrBuilder.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SettingsOrBuilder.java @@ -86,8 +86,6 @@ public interface SettingsOrBuilder * *
    * Optional. The measurement unit defined in the user's account settings.
-   *
-   * Updates to this field are currently not supported.
    * 
* * @@ -103,8 +101,6 @@ public interface SettingsOrBuilder * *
    * Optional. The measurement unit defined in the user's account settings.
-   *
-   * Updates to this field are currently not supported.
    * 
* * diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Sleep.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Sleep.java index b27ffad93cc7..5da84845bbeb 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Sleep.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Sleep.java @@ -55,6 +55,7 @@ private Sleep() { type_ = 0; stages_ = java.util.Collections.emptyList(); outOfBedSegments_ = java.util.Collections.emptyList(); + shortAwakenings_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -5011,6 +5012,10 @@ public interface SleepMetadataOrBuilder * *
      * Output only. Sleep and sleep stages algorithms finished processing.
+     * A `true` value indicates whether all data processing for the session is
+     * complete.
+     * A `false` value means sleep period is detected but sleep stages is still
+     * processing.
      * 
* * bool processed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5072,6 +5077,22 @@ public interface SleepMetadataOrBuilder * @return The bytes for externalId. */ com.google.protobuf.ByteString getExternalIdBytes(); + + /** + * + * + *
+     * Output only. `main_sleep`: the longest sleep session with stages within
+     * one day. If no sleep session has stages, then the longest sleep is the
+     * `main_sleep`.  If there are multiple days of sleep in the response, there
+     * is one `main_sleep` per day.
+     * 
+ * + * bool main_sleep = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mainSleep. + */ + boolean getMainSleep(); } /** @@ -5521,6 +5542,10 @@ public int getStagesStatusValue() { * *
      * Output only. Sleep and sleep stages algorithms finished processing.
+     * A `true` value indicates whether all data processing for the session is
+     * complete.
+     * A `false` value means sleep period is detected but sleep stages is still
+     * processing.
      * 
* * bool processed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5625,6 +5650,28 @@ public com.google.protobuf.ByteString getExternalIdBytes() { } } + public static final int MAIN_SLEEP_FIELD_NUMBER = 9; + private boolean mainSleep_ = false; + + /** + * + * + *
+     * Output only. `main_sleep`: the longest sleep session with stages within
+     * one day. If no sleep session has stages, then the longest sleep is the
+     * `main_sleep`.  If there are multiple days of sleep in the response, there
+     * is one `main_sleep` per day.
+     * 
+ * + * bool main_sleep = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mainSleep. + */ + @java.lang.Override + public boolean getMainSleep() { + return mainSleep_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -5657,6 +5704,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(externalId_)) { com.google.protobuf.GeneratedMessage.writeString(output, 7, externalId_); } + if (mainSleep_ != false) { + output.writeBool(9, mainSleep_); + } getUnknownFields().writeTo(output); } @@ -5684,6 +5734,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(externalId_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(7, externalId_); } + if (mainSleep_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, mainSleep_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5705,6 +5758,7 @@ public boolean equals(final java.lang.Object obj) { if (getNap() != other.getNap()) return false; if (getManuallyEdited() != other.getManuallyEdited()) return false; if (!getExternalId().equals(other.getExternalId())) return false; + if (getMainSleep() != other.getMainSleep()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5726,6 +5780,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManuallyEdited()); hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; hash = (53 * hash) + getExternalId().hashCode(); + hash = (37 * hash) + MAIN_SLEEP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMainSleep()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5872,6 +5928,7 @@ public Builder clear() { nap_ = false; manuallyEdited_ = false; externalId_ = ""; + mainSleep_ = false; return this; } @@ -5925,6 +5982,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000010) != 0)) { result.externalId_ = externalId_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.mainSleep_ = mainSleep_; + } } @java.lang.Override @@ -5958,6 +6018,9 @@ public Builder mergeFrom(com.google.devicesandservices.health.v4.Sleep.SleepMeta bitField0_ |= 0x00000010; onChanged(); } + if (other.getMainSleep() != false) { + setMainSleep(other.getMainSleep()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6014,6 +6077,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 58 + case 72: + { + mainSleep_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6150,6 +6219,10 @@ public Builder clearStagesStatus() { * *
        * Output only. Sleep and sleep stages algorithms finished processing.
+       * A `true` value indicates whether all data processing for the session is
+       * complete.
+       * A `false` value means sleep period is detected but sleep stages is still
+       * processing.
        * 
* * bool processed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -6166,6 +6239,10 @@ public boolean getProcessed() { * *
        * Output only. Sleep and sleep stages algorithms finished processing.
+       * A `true` value indicates whether all data processing for the session is
+       * complete.
+       * A `false` value means sleep period is detected but sleep stages is still
+       * processing.
        * 
* * bool processed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -6186,6 +6263,10 @@ public Builder setProcessed(boolean value) { * *
        * Output only. Sleep and sleep stages algorithms finished processing.
+       * A `true` value indicates whether all data processing for the session is
+       * complete.
+       * A `false` value means sleep period is detected but sleep stages is still
+       * processing.
        * 
* * bool processed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -6428,6 +6509,71 @@ public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { return this; } + private boolean mainSleep_; + + /** + * + * + *
+       * Output only. `main_sleep`: the longest sleep session with stages within
+       * one day. If no sleep session has stages, then the longest sleep is the
+       * `main_sleep`.  If there are multiple days of sleep in the response, there
+       * is one `main_sleep` per day.
+       * 
+ * + * bool main_sleep = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mainSleep. + */ + @java.lang.Override + public boolean getMainSleep() { + return mainSleep_; + } + + /** + * + * + *
+       * Output only. `main_sleep`: the longest sleep session with stages within
+       * one day. If no sleep session has stages, then the longest sleep is the
+       * `main_sleep`.  If there are multiple days of sleep in the response, there
+       * is one `main_sleep` per day.
+       * 
+ * + * bool main_sleep = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The mainSleep to set. + * @return This builder for chaining. + */ + public Builder setMainSleep(boolean value) { + + mainSleep_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. `main_sleep`: the longest sleep session with stages within
+       * one day. If no sleep session has stages, then the longest sleep is the
+       * `main_sleep`.  If there are multiple days of sleep in the response, there
+       * is one `main_sleep` per day.
+       * 
+ * + * bool main_sleep = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMainSleep() { + bitField0_ = (bitField0_ & ~0x00000020); + mainSleep_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.devicesandservices.health.v4.Sleep.SleepMetadata) } @@ -9727,7 +9873,8 @@ public com.google.devicesandservices.health.v4.Sleep.OutOfBedSegment getOutOfBed * * *
-   * Optional. Sleep metadata: processing, main, manually edited, stages status.
+   * Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and
+   * `stages_status`.
    * 
* * @@ -9745,7 +9892,8 @@ public boolean hasMetadata() { * * *
-   * Optional. Sleep metadata: processing, main, manually edited, stages status.
+   * Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and
+   * `stages_status`.
    * 
* * @@ -9765,7 +9913,8 @@ public com.google.devicesandservices.health.v4.Sleep.SleepMetadata getMetadata() * * *
-   * Optional. Sleep metadata: processing, main, manually edited, stages status.
+   * Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and
+   * `stages_status`.
    * 
* * @@ -9943,6 +10092,99 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } + public static final int SHORT_AWAKENINGS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private java.util.List shortAwakenings_; + + /** + * + * + *
+   * Output only. List of short awake segments (under a set threshold) that are
+   * part of the sleep session. These can overlap with sleep stages.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getShortAwakeningsList() { + return shortAwakenings_; + } + + /** + * + * + *
+   * Output only. List of short awake segments (under a set threshold) that are
+   * part of the sleep session. These can overlap with sleep stages.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getShortAwakeningsOrBuilderList() { + return shortAwakenings_; + } + + /** + * + * + *
+   * Output only. List of short awake segments (under a set threshold) that are
+   * part of the sleep session. These can overlap with sleep stages.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getShortAwakeningsCount() { + return shortAwakenings_.size(); + } + + /** + * + * + *
+   * Output only. List of short awake segments (under a set threshold) that are
+   * part of the sleep session. These can overlap with sleep stages.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.Sleep.SleepStage getShortAwakenings(int index) { + return shortAwakenings_.get(index); + } + + /** + * + * + *
+   * Output only. List of short awake segments (under a set threshold) that are
+   * part of the sleep session. These can overlap with sleep stages.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.Sleep.SleepStageOrBuilder + getShortAwakeningsOrBuilder(int index) { + return shortAwakenings_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -9983,6 +10225,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(11, getUpdateTime()); } + for (int i = 0; i < shortAwakenings_.size(); i++) { + output.writeMessage(12, shortAwakenings_.get(i)); + } getUnknownFields().writeTo(output); } @@ -10018,6 +10263,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime()); } + for (int i = 0; i < shortAwakenings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, shortAwakenings_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -10057,6 +10305,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } + if (!getShortAwakeningsList().equals(other.getShortAwakeningsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10098,6 +10347,10 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } + if (getShortAwakeningsCount() > 0) { + hash = (37 * hash) + SHORT_AWAKENINGS_FIELD_NUMBER; + hash = (53 * hash) + getShortAwakeningsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -10246,6 +10499,7 @@ private void maybeForceBuilderInitialization() { internalGetSummaryFieldBuilder(); internalGetCreateTimeFieldBuilder(); internalGetUpdateTimeFieldBuilder(); + internalGetShortAwakeningsFieldBuilder(); } } @@ -10293,6 +10547,13 @@ public Builder clear() { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } + if (shortAwakeningsBuilder_ == null) { + shortAwakenings_ = java.util.Collections.emptyList(); + } else { + shortAwakenings_ = null; + shortAwakeningsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); return this; } @@ -10347,6 +10608,15 @@ private void buildPartialRepeatedFields(com.google.devicesandservices.health.v4. } else { result.outOfBedSegments_ = outOfBedSegmentsBuilder_.build(); } + if (shortAwakeningsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + shortAwakenings_ = java.util.Collections.unmodifiableList(shortAwakenings_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.shortAwakenings_ = shortAwakenings_; + } else { + result.shortAwakenings_ = shortAwakeningsBuilder_.build(); + } } private void buildPartial0(com.google.devicesandservices.health.v4.Sleep result) { @@ -10462,6 +10732,33 @@ public Builder mergeFrom(com.google.devicesandservices.health.v4.Sleep other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (shortAwakeningsBuilder_ == null) { + if (!other.shortAwakenings_.isEmpty()) { + if (shortAwakenings_.isEmpty()) { + shortAwakenings_ = other.shortAwakenings_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureShortAwakeningsIsMutable(); + shortAwakenings_.addAll(other.shortAwakenings_); + } + onChanged(); + } + } else { + if (!other.shortAwakenings_.isEmpty()) { + if (shortAwakeningsBuilder_.isEmpty()) { + shortAwakeningsBuilder_.dispose(); + shortAwakeningsBuilder_ = null; + shortAwakenings_ = other.shortAwakenings_; + bitField0_ = (bitField0_ & ~0x00000100); + shortAwakeningsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetShortAwakeningsFieldBuilder() + : null; + } else { + shortAwakeningsBuilder_.addAllMessages(other.shortAwakenings_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -10556,6 +10853,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 90 + case 98: + { + com.google.devicesandservices.health.v4.Sleep.SleepStage m = + input.readMessage( + com.google.devicesandservices.health.v4.Sleep.SleepStage.parser(), + extensionRegistry); + if (shortAwakeningsBuilder_ == null) { + ensureShortAwakeningsIsMutable(); + shortAwakenings_.add(m); + } else { + shortAwakeningsBuilder_.addMessage(m); + } + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -11788,7 +12099,8 @@ public Builder removeOutOfBedSegments(int index) { * * *
-     * Optional. Sleep metadata: processing, main, manually edited, stages status.
+     * Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and
+     * `stages_status`.
      * 
* * @@ -11805,7 +12117,8 @@ public boolean hasMetadata() { * * *
-     * Optional. Sleep metadata: processing, main, manually edited, stages status.
+     * Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and
+     * `stages_status`.
      * 
* * @@ -11828,7 +12141,8 @@ public com.google.devicesandservices.health.v4.Sleep.SleepMetadata getMetadata() * * *
-     * Optional. Sleep metadata: processing, main, manually edited, stages status.
+     * Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and
+     * `stages_status`.
      * 
* * @@ -11853,7 +12167,8 @@ public Builder setMetadata(com.google.devicesandservices.health.v4.Sleep.SleepMe * * *
-     * Optional. Sleep metadata: processing, main, manually edited, stages status.
+     * Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and
+     * `stages_status`.
      * 
* * @@ -11876,7 +12191,8 @@ public Builder setMetadata( * * *
-     * Optional. Sleep metadata: processing, main, manually edited, stages status.
+     * Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and
+     * `stages_status`.
      * 
* * @@ -11909,7 +12225,8 @@ public Builder mergeMetadata( * * *
-     * Optional. Sleep metadata: processing, main, manually edited, stages status.
+     * Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and
+     * `stages_status`.
      * 
* * @@ -11931,7 +12248,8 @@ public Builder clearMetadata() { * * *
-     * Optional. Sleep metadata: processing, main, manually edited, stages status.
+     * Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and
+     * `stages_status`.
      * 
* * @@ -11949,7 +12267,8 @@ public Builder clearMetadata() { * * *
-     * Optional. Sleep metadata: processing, main, manually edited, stages status.
+     * Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and
+     * `stages_status`.
      * 
* * @@ -11971,7 +12290,8 @@ public Builder clearMetadata() { * * *
-     * Optional. Sleep metadata: processing, main, manually edited, stages status.
+     * Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and
+     * `stages_status`.
      * 
* * @@ -12635,6 +12955,446 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } + private java.util.List + shortAwakenings_ = java.util.Collections.emptyList(); + + private void ensureShortAwakeningsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + shortAwakenings_ = + new java.util.ArrayList( + shortAwakenings_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.devicesandservices.health.v4.Sleep.SleepStage, + com.google.devicesandservices.health.v4.Sleep.SleepStage.Builder, + com.google.devicesandservices.health.v4.Sleep.SleepStageOrBuilder> + shortAwakeningsBuilder_; + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getShortAwakeningsList() { + if (shortAwakeningsBuilder_ == null) { + return java.util.Collections.unmodifiableList(shortAwakenings_); + } else { + return shortAwakeningsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getShortAwakeningsCount() { + if (shortAwakeningsBuilder_ == null) { + return shortAwakenings_.size(); + } else { + return shortAwakeningsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.devicesandservices.health.v4.Sleep.SleepStage getShortAwakenings(int index) { + if (shortAwakeningsBuilder_ == null) { + return shortAwakenings_.get(index); + } else { + return shortAwakeningsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setShortAwakenings( + int index, com.google.devicesandservices.health.v4.Sleep.SleepStage value) { + if (shortAwakeningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShortAwakeningsIsMutable(); + shortAwakenings_.set(index, value); + onChanged(); + } else { + shortAwakeningsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setShortAwakenings( + int index, + com.google.devicesandservices.health.v4.Sleep.SleepStage.Builder builderForValue) { + if (shortAwakeningsBuilder_ == null) { + ensureShortAwakeningsIsMutable(); + shortAwakenings_.set(index, builderForValue.build()); + onChanged(); + } else { + shortAwakeningsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addShortAwakenings( + com.google.devicesandservices.health.v4.Sleep.SleepStage value) { + if (shortAwakeningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShortAwakeningsIsMutable(); + shortAwakenings_.add(value); + onChanged(); + } else { + shortAwakeningsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addShortAwakenings( + int index, com.google.devicesandservices.health.v4.Sleep.SleepStage value) { + if (shortAwakeningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureShortAwakeningsIsMutable(); + shortAwakenings_.add(index, value); + onChanged(); + } else { + shortAwakeningsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addShortAwakenings( + com.google.devicesandservices.health.v4.Sleep.SleepStage.Builder builderForValue) { + if (shortAwakeningsBuilder_ == null) { + ensureShortAwakeningsIsMutable(); + shortAwakenings_.add(builderForValue.build()); + onChanged(); + } else { + shortAwakeningsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addShortAwakenings( + int index, + com.google.devicesandservices.health.v4.Sleep.SleepStage.Builder builderForValue) { + if (shortAwakeningsBuilder_ == null) { + ensureShortAwakeningsIsMutable(); + shortAwakenings_.add(index, builderForValue.build()); + onChanged(); + } else { + shortAwakeningsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllShortAwakenings( + java.lang.Iterable + values) { + if (shortAwakeningsBuilder_ == null) { + ensureShortAwakeningsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, shortAwakenings_); + onChanged(); + } else { + shortAwakeningsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearShortAwakenings() { + if (shortAwakeningsBuilder_ == null) { + shortAwakenings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + shortAwakeningsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeShortAwakenings(int index) { + if (shortAwakeningsBuilder_ == null) { + ensureShortAwakeningsIsMutable(); + shortAwakenings_.remove(index); + onChanged(); + } else { + shortAwakeningsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.devicesandservices.health.v4.Sleep.SleepStage.Builder + getShortAwakeningsBuilder(int index) { + return internalGetShortAwakeningsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.devicesandservices.health.v4.Sleep.SleepStageOrBuilder + getShortAwakeningsOrBuilder(int index) { + if (shortAwakeningsBuilder_ == null) { + return shortAwakenings_.get(index); + } else { + return shortAwakeningsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.devicesandservices.health.v4.Sleep.SleepStageOrBuilder> + getShortAwakeningsOrBuilderList() { + if (shortAwakeningsBuilder_ != null) { + return shortAwakeningsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(shortAwakenings_); + } + } + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.devicesandservices.health.v4.Sleep.SleepStage.Builder + addShortAwakeningsBuilder() { + return internalGetShortAwakeningsFieldBuilder() + .addBuilder( + com.google.devicesandservices.health.v4.Sleep.SleepStage.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.devicesandservices.health.v4.Sleep.SleepStage.Builder + addShortAwakeningsBuilder(int index) { + return internalGetShortAwakeningsFieldBuilder() + .addBuilder( + index, com.google.devicesandservices.health.v4.Sleep.SleepStage.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. List of short awake segments (under a set threshold) that are
+     * part of the sleep session. These can overlap with sleep stages.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getShortAwakeningsBuilderList() { + return internalGetShortAwakeningsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.devicesandservices.health.v4.Sleep.SleepStage, + com.google.devicesandservices.health.v4.Sleep.SleepStage.Builder, + com.google.devicesandservices.health.v4.Sleep.SleepStageOrBuilder> + internalGetShortAwakeningsFieldBuilder() { + if (shortAwakeningsBuilder_ == null) { + shortAwakeningsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.devicesandservices.health.v4.Sleep.SleepStage, + com.google.devicesandservices.health.v4.Sleep.SleepStage.Builder, + com.google.devicesandservices.health.v4.Sleep.SleepStageOrBuilder>( + shortAwakenings_, + ((bitField0_ & 0x00000100) != 0), + getParentForChildren(), + isClean()); + shortAwakenings_ = null; + } + return shortAwakeningsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.devicesandservices.health.v4.Sleep) } diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SleepOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SleepOrBuilder.java index 9c33628a4fa2..ea5d5db7a340 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SleepOrBuilder.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SleepOrBuilder.java @@ -247,7 +247,8 @@ public interface SleepOrBuilder * * *
-   * Optional. Sleep metadata: processing, main, manually edited, stages status.
+   * Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and
+   * `stages_status`.
    * 
* * @@ -262,7 +263,8 @@ public interface SleepOrBuilder * * *
-   * Optional. Sleep metadata: processing, main, manually edited, stages status.
+   * Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and
+   * `stages_status`.
    * 
* * @@ -277,7 +279,8 @@ public interface SleepOrBuilder * * *
-   * Optional. Sleep metadata: processing, main, manually edited, stages status.
+   * Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and
+   * `stages_status`.
    * 
* * @@ -408,4 +411,76 @@ public interface SleepOrBuilder * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. List of short awake segments (under a set threshold) that are
+   * part of the sleep session. These can overlap with sleep stages.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getShortAwakeningsList(); + + /** + * + * + *
+   * Output only. List of short awake segments (under a set threshold) that are
+   * part of the sleep session. These can overlap with sleep stages.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.devicesandservices.health.v4.Sleep.SleepStage getShortAwakenings(int index); + + /** + * + * + *
+   * Output only. List of short awake segments (under a set threshold) that are
+   * part of the sleep session. These can overlap with sleep stages.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getShortAwakeningsCount(); + + /** + * + * + *
+   * Output only. List of short awake segments (under a set threshold) that are
+   * part of the sleep session. These can overlap with sleep stages.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getShortAwakeningsOrBuilderList(); + + /** + * + * + *
+   * Output only. List of short awake segments (under a set threshold) that are
+   * part of the sleep session. These can overlap with sleep stages.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Sleep.SleepStage short_awakenings = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.devicesandservices.health.v4.Sleep.SleepStageOrBuilder getShortAwakeningsOrBuilder( + int index); } diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Subscription.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Subscription.java index b2ad8a78b5f9..dcda18d43fa0 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Subscription.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Subscription.java @@ -162,8 +162,9 @@ public com.google.protobuf.ByteString getNameBytes() { * A subscriber will only receive notifications for data types that are * declared here. * A subscription can only subscribe to the data types of the subscriber. - * Supported data types are: "altitude", "distance", "floors", "sleep", - * "steps", "weight". + * The values should be in the format + * "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + * of "altitude", "distance", "floors", "sleep", "steps", "weight". * * * @@ -184,8 +185,9 @@ public com.google.protobuf.ProtocolStringList getDataTypesList() { * A subscriber will only receive notifications for data types that are * declared here. * A subscription can only subscribe to the data types of the subscriber. - * Supported data types are: "altitude", "distance", "floors", "sleep", - * "steps", "weight". + * The values should be in the format + * "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + * of "altitude", "distance", "floors", "sleep", "steps", "weight". * * * @@ -206,8 +208,9 @@ public int getDataTypesCount() { * A subscriber will only receive notifications for data types that are * declared here. * A subscription can only subscribe to the data types of the subscriber. - * Supported data types are: "altitude", "distance", "floors", "sleep", - * "steps", "weight". + * The values should be in the format + * "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + * of "altitude", "distance", "floors", "sleep", "steps", "weight". * * * @@ -229,8 +232,9 @@ public java.lang.String getDataTypes(int index) { * A subscriber will only receive notifications for data types that are * declared here. * A subscription can only subscribe to the data types of the subscriber. - * Supported data types are: "altitude", "distance", "floors", "sleep", - * "steps", "weight". + * The values should be in the format + * "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + * of "altitude", "distance", "floors", "sleep", "steps", "weight". * * * @@ -864,8 +868,9 @@ private void ensureDataTypesIsMutable() { * A subscriber will only receive notifications for data types that are * declared here. * A subscription can only subscribe to the data types of the subscriber. - * Supported data types are: "altitude", "distance", "floors", "sleep", - * "steps", "weight". + * The values should be in the format + * "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + * of "altitude", "distance", "floors", "sleep", "steps", "weight". * * * @@ -887,8 +892,9 @@ public com.google.protobuf.ProtocolStringList getDataTypesList() { * A subscriber will only receive notifications for data types that are * declared here. * A subscription can only subscribe to the data types of the subscriber. - * Supported data types are: "altitude", "distance", "floors", "sleep", - * "steps", "weight". + * The values should be in the format + * "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + * of "altitude", "distance", "floors", "sleep", "steps", "weight". * * * @@ -909,8 +915,9 @@ public int getDataTypesCount() { * A subscriber will only receive notifications for data types that are * declared here. * A subscription can only subscribe to the data types of the subscriber. - * Supported data types are: "altitude", "distance", "floors", "sleep", - * "steps", "weight". + * The values should be in the format + * "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + * of "altitude", "distance", "floors", "sleep", "steps", "weight". * * * @@ -932,8 +939,9 @@ public java.lang.String getDataTypes(int index) { * A subscriber will only receive notifications for data types that are * declared here. * A subscription can only subscribe to the data types of the subscriber. - * Supported data types are: "altitude", "distance", "floors", "sleep", - * "steps", "weight". + * The values should be in the format + * "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + * of "altitude", "distance", "floors", "sleep", "steps", "weight". * * * @@ -955,8 +963,9 @@ public com.google.protobuf.ByteString getDataTypesBytes(int index) { * A subscriber will only receive notifications for data types that are * declared here. * A subscription can only subscribe to the data types of the subscriber. - * Supported data types are: "altitude", "distance", "floors", "sleep", - * "steps", "weight". + * The values should be in the format + * "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + * of "altitude", "distance", "floors", "sleep", "steps", "weight". * * * @@ -986,8 +995,9 @@ public Builder setDataTypes(int index, java.lang.String value) { * A subscriber will only receive notifications for data types that are * declared here. * A subscription can only subscribe to the data types of the subscriber. - * Supported data types are: "altitude", "distance", "floors", "sleep", - * "steps", "weight". + * The values should be in the format + * "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + * of "altitude", "distance", "floors", "sleep", "steps", "weight". * * * @@ -1016,8 +1026,9 @@ public Builder addDataTypes(java.lang.String value) { * A subscriber will only receive notifications for data types that are * declared here. * A subscription can only subscribe to the data types of the subscriber. - * Supported data types are: "altitude", "distance", "floors", "sleep", - * "steps", "weight". + * The values should be in the format + * "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + * of "altitude", "distance", "floors", "sleep", "steps", "weight". * * * @@ -1043,8 +1054,9 @@ public Builder addAllDataTypes(java.lang.Iterable values) { * A subscriber will only receive notifications for data types that are * declared here. * A subscription can only subscribe to the data types of the subscriber. - * Supported data types are: "altitude", "distance", "floors", "sleep", - * "steps", "weight". + * The values should be in the format + * "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + * of "altitude", "distance", "floors", "sleep", "steps", "weight". * * * @@ -1069,8 +1081,9 @@ public Builder clearDataTypes() { * A subscriber will only receive notifications for data types that are * declared here. * A subscription can only subscribe to the data types of the subscriber. - * Supported data types are: "altitude", "distance", "floors", "sleep", - * "steps", "weight". + * The values should be in the format + * "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + * of "altitude", "distance", "floors", "sleep", "steps", "weight". * * * diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SubscriptionOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SubscriptionOrBuilder.java index 55b04da6e2af..09d33650f42f 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SubscriptionOrBuilder.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SubscriptionOrBuilder.java @@ -82,8 +82,9 @@ public interface SubscriptionOrBuilder * A subscriber will only receive notifications for data types that are * declared here. * A subscription can only subscribe to the data types of the subscriber. - * Supported data types are: "altitude", "distance", "floors", "sleep", - * "steps", "weight". + * The values should be in the format + * "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + * of "altitude", "distance", "floors", "sleep", "steps", "weight". * * * @@ -102,8 +103,9 @@ public interface SubscriptionOrBuilder * A subscriber will only receive notifications for data types that are * declared here. * A subscription can only subscribe to the data types of the subscriber. - * Supported data types are: "altitude", "distance", "floors", "sleep", - * "steps", "weight". + * The values should be in the format + * "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + * of "altitude", "distance", "floors", "sleep", "steps", "weight". * * * @@ -122,8 +124,9 @@ public interface SubscriptionOrBuilder * A subscriber will only receive notifications for data types that are * declared here. * A subscription can only subscribe to the data types of the subscriber. - * Supported data types are: "altitude", "distance", "floors", "sleep", - * "steps", "weight". + * The values should be in the format + * "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + * of "altitude", "distance", "floors", "sleep", "steps", "weight". * * * @@ -143,8 +146,9 @@ public interface SubscriptionOrBuilder * A subscriber will only receive notifications for data types that are * declared here. * A subscription can only subscribe to the data types of the subscriber. - * Supported data types are: "altitude", "distance", "floors", "sleep", - * "steps", "weight". + * The values should be in the format + * "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + * of "altitude", "distance", "floors", "sleep", "steps", "weight". * * * diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Symptoms.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Symptoms.java new file mode 100644 index 000000000000..0795f26354b8 --- /dev/null +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/Symptoms.java @@ -0,0 +1,2787 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/devicesandservices/health/v4/data_model.proto +// Protobuf Java Version: 4.33.6 + +package com.google.devicesandservices.health.v4; + +/** + * + * + *
+ * Symptoms logged by the user.
+ * 
+ * + * Protobuf type {@code google.devicesandservices.health.v4.Symptoms} + */ +@com.google.protobuf.Generated +public final class Symptoms extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.devicesandservices.health.v4.Symptoms) + SymptomsOrBuilder { + 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= */ "", + "Symptoms"); + } + + // Use Symptoms.newBuilder() to construct. + private Symptoms(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Symptoms() { + symptoms_ = emptyIntList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_Symptoms_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_Symptoms_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devicesandservices.health.v4.Symptoms.class, + com.google.devicesandservices.health.v4.Symptoms.Builder.class); + } + + /** + * + * + *
+   * Enum representing possible symptom values.
+   * 
+ * + * Protobuf enum {@code google.devicesandservices.health.v4.Symptoms.SymptomValue} + */ + public enum SymptomValue implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified symptom value.
+     * 
+ * + * SYMPTOM_VALUE_UNSPECIFIED = 0; + */ + SYMPTOM_VALUE_UNSPECIFIED(0), + /** + * + * + *
+     * Abdominal cramps.
+     * 
+ * + * CRAMPS = 1; + */ + CRAMPS(1), + /** + * + * + *
+     * Headache.
+     * 
+ * + * HEADACHE = 2; + */ + HEADACHE(2), + /** + * + * + *
+     * Tender breasts.
+     * 
+ * + * TENDER_BREASTS = 3; + */ + TENDER_BREASTS(3), + /** + * + * + *
+     * Acne.
+     * 
+ * + * ACNE = 4; + */ + ACNE(4), + /** + * + * + *
+     * Feeling sick or unwell.
+     * 
+ * + * SICK = 5; + */ + SICK(5), + /** + * + * + *
+     * Bloating or abdominal swelling.
+     * 
+ * + * BLOATED = 6; + */ + BLOATED(6), + /** + * + * + *
+     * Hot flashes.
+     * 
+ * + * HOT_FLASHES = 7; + */ + HOT_FLASHES(7), + /** + * + * + *
+     * Premenstrual syndrome symptoms.
+     * 
+ * + * PMS = 8; + */ + PMS(8), + /** + * + * + *
+     * Coughing.
+     * 
+ * + * COUGH = 9; + */ + COUGH(9), + /** + * + * + *
+     * Fever or elevated body temperature.
+     * 
+ * + * FEVER = 10; + */ + FEVER(10), + /** + * + * + *
+     * Difficulty breathing or shortness of breath.
+     * 
+ * + * DIFFICULTY_BREATHING = 11; + */ + DIFFICULTY_BREATHING(11), + /** + * + * + *
+     * Back pain.
+     * 
+ * + * BACK_PAIN = 12; + */ + BACK_PAIN(12), + /** + * + * + *
+     * Shakiness or tremors.
+     * 
+ * + * SHAKINESS = 13; + */ + SHAKINESS(13), + /** + * + * + *
+     * Excessive hunger.
+     * 
+ * + * HUNGER = 14; + */ + HUNGER(14), + /** + * + * + *
+     * Excessive sweating.
+     * 
+ * + * SWEATING = 15; + */ + SWEATING(15), + /** + * + * + *
+     * Anxiety or nervousness.
+     * 
+ * + * ANXIETY = 16; + */ + ANXIETY(16), + /** + * + * + *
+     * Excessive thirst.
+     * 
+ * + * THIRST = 17; + */ + THIRST(17), + /** + * + * + *
+     * Frequent urination.
+     * 
+ * + * FREQUENT_URINATION = 18; + */ + FREQUENT_URINATION(18), + /** + * + * + *
+     * Blurred vision.
+     * 
+ * + * BLURRED_VISION = 19; + */ + BLURRED_VISION(19), + /** + * + * + *
+     * Other symptoms.
+     * 
+ * + * OTHER = 20; + */ + OTHER(20), + /** + * + * + *
+     * High sex drive.
+     * 
+ * + * SEX_DRIVE_HIGH = 21; + */ + SEX_DRIVE_HIGH(21), + /** + * + * + *
+     * Medium sex drive.
+     * 
+ * + * SEX_DRIVE_MEDIUM = 22; + */ + SEX_DRIVE_MEDIUM(22), + /** + * + * + *
+     * Low sex drive.
+     * 
+ * + * SEX_DRIVE_LOW = 23; + */ + SEX_DRIVE_LOW(23), + /** + * + * + *
+     * Heart palpitations or racing heart.
+     * 
+ * + * HEART_PALPITATIONS = 24; + */ + HEART_PALPITATIONS(24), + /** + * + * + *
+     * Fainting or loss of consciousness.
+     * 
+ * + * FAINTING = 25; + */ + FAINTING(25), + /** + * + * + *
+     * Chest pain or discomfort.
+     * 
+ * + * CHEST_PAIN = 26; + */ + CHEST_PAIN(26), + /** + * + * + *
+     * Fatigue or extreme tiredness.
+     * 
+ * + * FATIGUE = 27; + */ + FATIGUE(27), + /** + * + * + *
+     * Confusion or mental fogginess.
+     * 
+ * + * CONFUSION = 28; + */ + CONFUSION(28), + /** + * + * + *
+     * Dizziness or lightheadedness.
+     * 
+ * + * DIZZINESS = 29; + */ + DIZZINESS(29), + /** + * + * + *
+     * Abdominal pain.
+     * 
+ * + * ABDOMINAL_PAIN = 30; + */ + ABDOMINAL_PAIN(30), + /** + * + * + *
+     * Bladder leaks.
+     * 
+ * + * BLADDER_LEAKS = 31; + */ + BLADDER_LEAKS(31), + /** + * + * + *
+     * Bleeding gums.
+     * 
+ * + * BLEEDING_GUMS = 32; + */ + BLEEDING_GUMS(32), + /** + * + * + *
+     * Brain fog.
+     * 
+ * + * BRAIN_FOG = 33; + */ + BRAIN_FOG(33), + /** + * + * + *
+     * Burning mouth.
+     * 
+ * + * BURNING_MOUTH = 34; + */ + BURNING_MOUTH(34), + /** + * + * + *
+     * Constipation.
+     * 
+ * + * CONSTIPATION = 35; + */ + CONSTIPATION(35), + /** + * + * + *
+     * Food cravings.
+     * 
+ * + * CRAVINGS = 36; + */ + CRAVINGS(36), + /** + * + * + *
+     * Decreased appetite.
+     * 
+ * + * DECREASED_APPETITE = 37; + */ + DECREASED_APPETITE(37), + /** + * + * + *
+     * Diarrhea.
+     * 
+ * + * DIARRHEA = 38; + */ + DIARRHEA(38), + /** + * + * + *
+     * Drawing pain.
+     * 
+ * + * DRAWING_PAIN = 39; + */ + DRAWING_PAIN(39), + /** + * + * + *
+     * Dry eyes.
+     * 
+ * + * DRY_EYES = 40; + */ + DRY_EYES(40), + /** + * + * + *
+     * Dry hair.
+     * 
+ * + * DRY_HAIR = 41; + */ + DRY_HAIR(41), + /** + * + * + *
+     * Dry skin.
+     * 
+ * + * DRY_SKIN = 42; + */ + DRY_SKIN(42), + /** + * + * + *
+     * Exhaustion.
+     * 
+ * + * EXHAUSTION = 43; + */ + EXHAUSTION(43), + /** + * + * + *
+     * Feeling good or well.
+     * 
+ * + * FEEL_GOOD = 44; + */ + FEEL_GOOD(44), + /** + * + * + *
+     * Food aversions.
+     * 
+ * + * FOOD_AVERSIONS = 45; + */ + FOOD_AVERSIONS(45), + /** + * + * + *
+     * Hair loss.
+     * 
+ * + * HAIR_LOSS = 46; + */ + HAIR_LOSS(46), + /** + * + * + *
+     * Heartburn.
+     * 
+ * + * HEARTBURN = 47; + */ + HEARTBURN(47), + /** + * + * + *
+     * Hyperpigmentation.
+     * 
+ * + * HYPERPIGMENTATION = 48; + */ + HYPERPIGMENTATION(48), + /** + * + * + *
+     * Increased appetite.
+     * 
+ * + * INCREASED_APPETITE = 49; + */ + INCREASED_APPETITE(49), + /** + * + * + *
+     * Increased appetite V2.
+     * 
+ * + * INCREASED_APPETITE_V2 = 50; + */ + INCREASED_APPETITE_V2(50), + /** + * + * + *
+     * Insomnia or difficulty sleeping.
+     * 
+ * + * INSOMNIA = 51; + */ + INSOMNIA(51), + /** + * + * + *
+     * Joint pain.
+     * 
+ * + * JOINT_PAIN = 52; + */ + JOINT_PAIN(52), + /** + * + * + *
+     * Leg cramps.
+     * 
+ * + * LEG_CRAMPS = 53; + */ + LEG_CRAMPS(53), + /** + * + * + *
+     * Milky nipple discharge.
+     * 
+ * + * MILKY_NIPPLE_DISCHARGE = 54; + */ + MILKY_NIPPLE_DISCHARGE(54), + /** + * + * + *
+     * Nausea.
+     * 
+ * + * NAUSEA = 55; + */ + NAUSEA(55), + /** + * + * + *
+     * Night sweats.
+     * 
+ * + * NIGHT_SWEATS = 56; + */ + NIGHT_SWEATS(56), + /** + * + * + *
+     * Normal digestion.
+     * 
+ * + * NORMAL_DIGESTION = 57; + */ + NORMAL_DIGESTION(57), + /** + * + * + *
+     * Normal stool.
+     * 
+ * + * NORMAL_STOOL = 58; + */ + NORMAL_STOOL(58), + /** + * + * + *
+     * Perineum pain.
+     * 
+ * + * PERINEUM_PAIN = 59; + */ + PERINEUM_PAIN(59), + /** + * + * + *
+     * Sleepiness or drowsiness.
+     * 
+ * + * SLEEPINESS = 60; + */ + SLEEPINESS(60), + /** + * + * + *
+     * Stretch marks.
+     * 
+ * + * STRETCH_MARKS = 61; + */ + STRETCH_MARKS(61), + /** + * + * + *
+     * Swelling.
+     * 
+ * + * SWELLING = 62; + */ + SWELLING(62), + /** + * + * + *
+     * Vaginal dryness.
+     * 
+ * + * VAGINAL_DRYNESS = 63; + */ + VAGINAL_DRYNESS(63), + /** + * + * + *
+     * Vaginal itching.
+     * 
+ * + * VAGINAL_ITCHING = 64; + */ + VAGINAL_ITCHING(64), + /** + * + * + *
+     * Vomiting.
+     * 
+ * + * VOMITING = 65; + */ + VOMITING(65), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SymptomValue"); + } + + /** + * + * + *
+     * Unspecified symptom value.
+     * 
+ * + * SYMPTOM_VALUE_UNSPECIFIED = 0; + */ + public static final int SYMPTOM_VALUE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Abdominal cramps.
+     * 
+ * + * CRAMPS = 1; + */ + public static final int CRAMPS_VALUE = 1; + + /** + * + * + *
+     * Headache.
+     * 
+ * + * HEADACHE = 2; + */ + public static final int HEADACHE_VALUE = 2; + + /** + * + * + *
+     * Tender breasts.
+     * 
+ * + * TENDER_BREASTS = 3; + */ + public static final int TENDER_BREASTS_VALUE = 3; + + /** + * + * + *
+     * Acne.
+     * 
+ * + * ACNE = 4; + */ + public static final int ACNE_VALUE = 4; + + /** + * + * + *
+     * Feeling sick or unwell.
+     * 
+ * + * SICK = 5; + */ + public static final int SICK_VALUE = 5; + + /** + * + * + *
+     * Bloating or abdominal swelling.
+     * 
+ * + * BLOATED = 6; + */ + public static final int BLOATED_VALUE = 6; + + /** + * + * + *
+     * Hot flashes.
+     * 
+ * + * HOT_FLASHES = 7; + */ + public static final int HOT_FLASHES_VALUE = 7; + + /** + * + * + *
+     * Premenstrual syndrome symptoms.
+     * 
+ * + * PMS = 8; + */ + public static final int PMS_VALUE = 8; + + /** + * + * + *
+     * Coughing.
+     * 
+ * + * COUGH = 9; + */ + public static final int COUGH_VALUE = 9; + + /** + * + * + *
+     * Fever or elevated body temperature.
+     * 
+ * + * FEVER = 10; + */ + public static final int FEVER_VALUE = 10; + + /** + * + * + *
+     * Difficulty breathing or shortness of breath.
+     * 
+ * + * DIFFICULTY_BREATHING = 11; + */ + public static final int DIFFICULTY_BREATHING_VALUE = 11; + + /** + * + * + *
+     * Back pain.
+     * 
+ * + * BACK_PAIN = 12; + */ + public static final int BACK_PAIN_VALUE = 12; + + /** + * + * + *
+     * Shakiness or tremors.
+     * 
+ * + * SHAKINESS = 13; + */ + public static final int SHAKINESS_VALUE = 13; + + /** + * + * + *
+     * Excessive hunger.
+     * 
+ * + * HUNGER = 14; + */ + public static final int HUNGER_VALUE = 14; + + /** + * + * + *
+     * Excessive sweating.
+     * 
+ * + * SWEATING = 15; + */ + public static final int SWEATING_VALUE = 15; + + /** + * + * + *
+     * Anxiety or nervousness.
+     * 
+ * + * ANXIETY = 16; + */ + public static final int ANXIETY_VALUE = 16; + + /** + * + * + *
+     * Excessive thirst.
+     * 
+ * + * THIRST = 17; + */ + public static final int THIRST_VALUE = 17; + + /** + * + * + *
+     * Frequent urination.
+     * 
+ * + * FREQUENT_URINATION = 18; + */ + public static final int FREQUENT_URINATION_VALUE = 18; + + /** + * + * + *
+     * Blurred vision.
+     * 
+ * + * BLURRED_VISION = 19; + */ + public static final int BLURRED_VISION_VALUE = 19; + + /** + * + * + *
+     * Other symptoms.
+     * 
+ * + * OTHER = 20; + */ + public static final int OTHER_VALUE = 20; + + /** + * + * + *
+     * High sex drive.
+     * 
+ * + * SEX_DRIVE_HIGH = 21; + */ + public static final int SEX_DRIVE_HIGH_VALUE = 21; + + /** + * + * + *
+     * Medium sex drive.
+     * 
+ * + * SEX_DRIVE_MEDIUM = 22; + */ + public static final int SEX_DRIVE_MEDIUM_VALUE = 22; + + /** + * + * + *
+     * Low sex drive.
+     * 
+ * + * SEX_DRIVE_LOW = 23; + */ + public static final int SEX_DRIVE_LOW_VALUE = 23; + + /** + * + * + *
+     * Heart palpitations or racing heart.
+     * 
+ * + * HEART_PALPITATIONS = 24; + */ + public static final int HEART_PALPITATIONS_VALUE = 24; + + /** + * + * + *
+     * Fainting or loss of consciousness.
+     * 
+ * + * FAINTING = 25; + */ + public static final int FAINTING_VALUE = 25; + + /** + * + * + *
+     * Chest pain or discomfort.
+     * 
+ * + * CHEST_PAIN = 26; + */ + public static final int CHEST_PAIN_VALUE = 26; + + /** + * + * + *
+     * Fatigue or extreme tiredness.
+     * 
+ * + * FATIGUE = 27; + */ + public static final int FATIGUE_VALUE = 27; + + /** + * + * + *
+     * Confusion or mental fogginess.
+     * 
+ * + * CONFUSION = 28; + */ + public static final int CONFUSION_VALUE = 28; + + /** + * + * + *
+     * Dizziness or lightheadedness.
+     * 
+ * + * DIZZINESS = 29; + */ + public static final int DIZZINESS_VALUE = 29; + + /** + * + * + *
+     * Abdominal pain.
+     * 
+ * + * ABDOMINAL_PAIN = 30; + */ + public static final int ABDOMINAL_PAIN_VALUE = 30; + + /** + * + * + *
+     * Bladder leaks.
+     * 
+ * + * BLADDER_LEAKS = 31; + */ + public static final int BLADDER_LEAKS_VALUE = 31; + + /** + * + * + *
+     * Bleeding gums.
+     * 
+ * + * BLEEDING_GUMS = 32; + */ + public static final int BLEEDING_GUMS_VALUE = 32; + + /** + * + * + *
+     * Brain fog.
+     * 
+ * + * BRAIN_FOG = 33; + */ + public static final int BRAIN_FOG_VALUE = 33; + + /** + * + * + *
+     * Burning mouth.
+     * 
+ * + * BURNING_MOUTH = 34; + */ + public static final int BURNING_MOUTH_VALUE = 34; + + /** + * + * + *
+     * Constipation.
+     * 
+ * + * CONSTIPATION = 35; + */ + public static final int CONSTIPATION_VALUE = 35; + + /** + * + * + *
+     * Food cravings.
+     * 
+ * + * CRAVINGS = 36; + */ + public static final int CRAVINGS_VALUE = 36; + + /** + * + * + *
+     * Decreased appetite.
+     * 
+ * + * DECREASED_APPETITE = 37; + */ + public static final int DECREASED_APPETITE_VALUE = 37; + + /** + * + * + *
+     * Diarrhea.
+     * 
+ * + * DIARRHEA = 38; + */ + public static final int DIARRHEA_VALUE = 38; + + /** + * + * + *
+     * Drawing pain.
+     * 
+ * + * DRAWING_PAIN = 39; + */ + public static final int DRAWING_PAIN_VALUE = 39; + + /** + * + * + *
+     * Dry eyes.
+     * 
+ * + * DRY_EYES = 40; + */ + public static final int DRY_EYES_VALUE = 40; + + /** + * + * + *
+     * Dry hair.
+     * 
+ * + * DRY_HAIR = 41; + */ + public static final int DRY_HAIR_VALUE = 41; + + /** + * + * + *
+     * Dry skin.
+     * 
+ * + * DRY_SKIN = 42; + */ + public static final int DRY_SKIN_VALUE = 42; + + /** + * + * + *
+     * Exhaustion.
+     * 
+ * + * EXHAUSTION = 43; + */ + public static final int EXHAUSTION_VALUE = 43; + + /** + * + * + *
+     * Feeling good or well.
+     * 
+ * + * FEEL_GOOD = 44; + */ + public static final int FEEL_GOOD_VALUE = 44; + + /** + * + * + *
+     * Food aversions.
+     * 
+ * + * FOOD_AVERSIONS = 45; + */ + public static final int FOOD_AVERSIONS_VALUE = 45; + + /** + * + * + *
+     * Hair loss.
+     * 
+ * + * HAIR_LOSS = 46; + */ + public static final int HAIR_LOSS_VALUE = 46; + + /** + * + * + *
+     * Heartburn.
+     * 
+ * + * HEARTBURN = 47; + */ + public static final int HEARTBURN_VALUE = 47; + + /** + * + * + *
+     * Hyperpigmentation.
+     * 
+ * + * HYPERPIGMENTATION = 48; + */ + public static final int HYPERPIGMENTATION_VALUE = 48; + + /** + * + * + *
+     * Increased appetite.
+     * 
+ * + * INCREASED_APPETITE = 49; + */ + public static final int INCREASED_APPETITE_VALUE = 49; + + /** + * + * + *
+     * Increased appetite V2.
+     * 
+ * + * INCREASED_APPETITE_V2 = 50; + */ + public static final int INCREASED_APPETITE_V2_VALUE = 50; + + /** + * + * + *
+     * Insomnia or difficulty sleeping.
+     * 
+ * + * INSOMNIA = 51; + */ + public static final int INSOMNIA_VALUE = 51; + + /** + * + * + *
+     * Joint pain.
+     * 
+ * + * JOINT_PAIN = 52; + */ + public static final int JOINT_PAIN_VALUE = 52; + + /** + * + * + *
+     * Leg cramps.
+     * 
+ * + * LEG_CRAMPS = 53; + */ + public static final int LEG_CRAMPS_VALUE = 53; + + /** + * + * + *
+     * Milky nipple discharge.
+     * 
+ * + * MILKY_NIPPLE_DISCHARGE = 54; + */ + public static final int MILKY_NIPPLE_DISCHARGE_VALUE = 54; + + /** + * + * + *
+     * Nausea.
+     * 
+ * + * NAUSEA = 55; + */ + public static final int NAUSEA_VALUE = 55; + + /** + * + * + *
+     * Night sweats.
+     * 
+ * + * NIGHT_SWEATS = 56; + */ + public static final int NIGHT_SWEATS_VALUE = 56; + + /** + * + * + *
+     * Normal digestion.
+     * 
+ * + * NORMAL_DIGESTION = 57; + */ + public static final int NORMAL_DIGESTION_VALUE = 57; + + /** + * + * + *
+     * Normal stool.
+     * 
+ * + * NORMAL_STOOL = 58; + */ + public static final int NORMAL_STOOL_VALUE = 58; + + /** + * + * + *
+     * Perineum pain.
+     * 
+ * + * PERINEUM_PAIN = 59; + */ + public static final int PERINEUM_PAIN_VALUE = 59; + + /** + * + * + *
+     * Sleepiness or drowsiness.
+     * 
+ * + * SLEEPINESS = 60; + */ + public static final int SLEEPINESS_VALUE = 60; + + /** + * + * + *
+     * Stretch marks.
+     * 
+ * + * STRETCH_MARKS = 61; + */ + public static final int STRETCH_MARKS_VALUE = 61; + + /** + * + * + *
+     * Swelling.
+     * 
+ * + * SWELLING = 62; + */ + public static final int SWELLING_VALUE = 62; + + /** + * + * + *
+     * Vaginal dryness.
+     * 
+ * + * VAGINAL_DRYNESS = 63; + */ + public static final int VAGINAL_DRYNESS_VALUE = 63; + + /** + * + * + *
+     * Vaginal itching.
+     * 
+ * + * VAGINAL_ITCHING = 64; + */ + public static final int VAGINAL_ITCHING_VALUE = 64; + + /** + * + * + *
+     * Vomiting.
+     * 
+ * + * VOMITING = 65; + */ + public static final int VOMITING_VALUE = 65; + + 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 SymptomValue 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 SymptomValue forNumber(int value) { + switch (value) { + case 0: + return SYMPTOM_VALUE_UNSPECIFIED; + case 1: + return CRAMPS; + case 2: + return HEADACHE; + case 3: + return TENDER_BREASTS; + case 4: + return ACNE; + case 5: + return SICK; + case 6: + return BLOATED; + case 7: + return HOT_FLASHES; + case 8: + return PMS; + case 9: + return COUGH; + case 10: + return FEVER; + case 11: + return DIFFICULTY_BREATHING; + case 12: + return BACK_PAIN; + case 13: + return SHAKINESS; + case 14: + return HUNGER; + case 15: + return SWEATING; + case 16: + return ANXIETY; + case 17: + return THIRST; + case 18: + return FREQUENT_URINATION; + case 19: + return BLURRED_VISION; + case 20: + return OTHER; + case 21: + return SEX_DRIVE_HIGH; + case 22: + return SEX_DRIVE_MEDIUM; + case 23: + return SEX_DRIVE_LOW; + case 24: + return HEART_PALPITATIONS; + case 25: + return FAINTING; + case 26: + return CHEST_PAIN; + case 27: + return FATIGUE; + case 28: + return CONFUSION; + case 29: + return DIZZINESS; + case 30: + return ABDOMINAL_PAIN; + case 31: + return BLADDER_LEAKS; + case 32: + return BLEEDING_GUMS; + case 33: + return BRAIN_FOG; + case 34: + return BURNING_MOUTH; + case 35: + return CONSTIPATION; + case 36: + return CRAVINGS; + case 37: + return DECREASED_APPETITE; + case 38: + return DIARRHEA; + case 39: + return DRAWING_PAIN; + case 40: + return DRY_EYES; + case 41: + return DRY_HAIR; + case 42: + return DRY_SKIN; + case 43: + return EXHAUSTION; + case 44: + return FEEL_GOOD; + case 45: + return FOOD_AVERSIONS; + case 46: + return HAIR_LOSS; + case 47: + return HEARTBURN; + case 48: + return HYPERPIGMENTATION; + case 49: + return INCREASED_APPETITE; + case 50: + return INCREASED_APPETITE_V2; + case 51: + return INSOMNIA; + case 52: + return JOINT_PAIN; + case 53: + return LEG_CRAMPS; + case 54: + return MILKY_NIPPLE_DISCHARGE; + case 55: + return NAUSEA; + case 56: + return NIGHT_SWEATS; + case 57: + return NORMAL_DIGESTION; + case 58: + return NORMAL_STOOL; + case 59: + return PERINEUM_PAIN; + case 60: + return SLEEPINESS; + case 61: + return STRETCH_MARKS; + case 62: + return SWELLING; + case 63: + return VAGINAL_DRYNESS; + case 64: + return VAGINAL_ITCHING; + case 65: + return VOMITING; + 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 SymptomValue findValueByNumber(int number) { + return SymptomValue.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.devicesandservices.health.v4.Symptoms.getDescriptor().getEnumTypes().get(0); + } + + private static final SymptomValue[] VALUES = values(); + + public static SymptomValue 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 SymptomValue(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.devicesandservices.health.v4.Symptoms.SymptomValue) + } + + private int bitField0_; + public static final int SAMPLE_TIME_FIELD_NUMBER = 1; + private com.google.devicesandservices.health.v4.ObservationSampleTime sampleTime_; + + /** + * + * + *
+   * Required. Time when the symptoms were logged.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleTime field is set. + */ + @java.lang.Override + public boolean hasSampleTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Time when the symptoms were logged.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleTime. + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.ObservationSampleTime getSampleTime() { + return sampleTime_ == null + ? com.google.devicesandservices.health.v4.ObservationSampleTime.getDefaultInstance() + : sampleTime_; + } + + /** + * + * + *
+   * Required. Time when the symptoms were logged.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder + getSampleTimeOrBuilder() { + return sampleTime_ == null + ? com.google.devicesandservices.health.v4.ObservationSampleTime.getDefaultInstance() + : sampleTime_; + } + + public static final int SYMPTOMS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList symptoms_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.devicesandservices.health.v4.Symptoms.SymptomValue> + symptoms_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.devicesandservices.health.v4.Symptoms.SymptomValue>() { + public com.google.devicesandservices.health.v4.Symptoms.SymptomValue convert(int from) { + com.google.devicesandservices.health.v4.Symptoms.SymptomValue result = + com.google.devicesandservices.health.v4.Symptoms.SymptomValue.forNumber(from); + return result == null + ? com.google.devicesandservices.health.v4.Symptoms.SymptomValue.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
+   * Required. List of symptoms experienced.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the symptoms. + */ + @java.lang.Override + public java.util.List + getSymptomsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.devicesandservices.health.v4.Symptoms.SymptomValue>( + symptoms_, symptoms_converter_); + } + + /** + * + * + *
+   * Required. List of symptoms experienced.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of symptoms. + */ + @java.lang.Override + public int getSymptomsCount() { + return symptoms_.size(); + } + + /** + * + * + *
+   * Required. List of symptoms experienced.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The symptoms at the given index. + */ + @java.lang.Override + public com.google.devicesandservices.health.v4.Symptoms.SymptomValue getSymptoms(int index) { + return symptoms_converter_.convert(symptoms_.getInt(index)); + } + + /** + * + * + *
+   * Required. List of symptoms experienced.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for symptoms. + */ + @java.lang.Override + public java.util.List getSymptomsValueList() { + return symptoms_; + } + + /** + * + * + *
+   * Required. List of symptoms experienced.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of symptoms at the given index. + */ + @java.lang.Override + public int getSymptomsValue(int index) { + return symptoms_.getInt(index); + } + + private int symptomsMemoizedSerializedSize; + + 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 { + getSerializedSize(); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSampleTime()); + } + if (getSymptomsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(symptomsMemoizedSerializedSize); + } + for (int i = 0; i < symptoms_.size(); i++) { + output.writeEnumNoTag(symptoms_.getInt(i)); + } + 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, getSampleTime()); + } + { + int dataSize = 0; + for (int i = 0; i < symptoms_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(symptoms_.getInt(i)); + } + size += dataSize; + if (!getSymptomsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + symptomsMemoizedSerializedSize = dataSize; + } + 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.devicesandservices.health.v4.Symptoms)) { + return super.equals(obj); + } + com.google.devicesandservices.health.v4.Symptoms other = + (com.google.devicesandservices.health.v4.Symptoms) obj; + + if (hasSampleTime() != other.hasSampleTime()) return false; + if (hasSampleTime()) { + if (!getSampleTime().equals(other.getSampleTime())) return false; + } + if (!symptoms_.equals(other.symptoms_)) 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 (hasSampleTime()) { + hash = (37 * hash) + SAMPLE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getSampleTime().hashCode(); + } + if (getSymptomsCount() > 0) { + hash = (37 * hash) + SYMPTOMS_FIELD_NUMBER; + hash = (53 * hash) + symptoms_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devicesandservices.health.v4.Symptoms parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devicesandservices.health.v4.Symptoms parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devicesandservices.health.v4.Symptoms parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devicesandservices.health.v4.Symptoms 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.devicesandservices.health.v4.Symptoms parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devicesandservices.health.v4.Symptoms parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devicesandservices.health.v4.Symptoms parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.devicesandservices.health.v4.Symptoms 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.devicesandservices.health.v4.Symptoms parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devicesandservices.health.v4.Symptoms 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.devicesandservices.health.v4.Symptoms parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.devicesandservices.health.v4.Symptoms 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.devicesandservices.health.v4.Symptoms 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; + } + + /** + * + * + *
+   * Symptoms logged by the user.
+   * 
+ * + * Protobuf type {@code google.devicesandservices.health.v4.Symptoms} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devicesandservices.health.v4.Symptoms) + com.google.devicesandservices.health.v4.SymptomsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_Symptoms_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_Symptoms_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devicesandservices.health.v4.Symptoms.class, + com.google.devicesandservices.health.v4.Symptoms.Builder.class); + } + + // Construct using com.google.devicesandservices.health.v4.Symptoms.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSampleTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sampleTime_ = null; + if (sampleTimeBuilder_ != null) { + sampleTimeBuilder_.dispose(); + sampleTimeBuilder_ = null; + } + symptoms_ = emptyIntList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devicesandservices.health.v4.DataModelProto + .internal_static_google_devicesandservices_health_v4_Symptoms_descriptor; + } + + @java.lang.Override + public com.google.devicesandservices.health.v4.Symptoms getDefaultInstanceForType() { + return com.google.devicesandservices.health.v4.Symptoms.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devicesandservices.health.v4.Symptoms build() { + com.google.devicesandservices.health.v4.Symptoms result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devicesandservices.health.v4.Symptoms buildPartial() { + com.google.devicesandservices.health.v4.Symptoms result = + new com.google.devicesandservices.health.v4.Symptoms(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.devicesandservices.health.v4.Symptoms result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sampleTime_ = sampleTimeBuilder_ == null ? sampleTime_ : sampleTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + symptoms_.makeImmutable(); + result.symptoms_ = symptoms_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devicesandservices.health.v4.Symptoms) { + return mergeFrom((com.google.devicesandservices.health.v4.Symptoms) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devicesandservices.health.v4.Symptoms other) { + if (other == com.google.devicesandservices.health.v4.Symptoms.getDefaultInstance()) + return this; + if (other.hasSampleTime()) { + mergeSampleTime(other.getSampleTime()); + } + if (!other.symptoms_.isEmpty()) { + if (symptoms_.isEmpty()) { + symptoms_ = other.symptoms_; + symptoms_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensureSymptomsIsMutable(); + symptoms_.addAll(other.symptoms_); + } + 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( + internalGetSampleTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + int tmpRaw = input.readEnum(); + ensureSymptomsIsMutable(); + symptoms_.addInt(tmpRaw); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSymptomsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + symptoms_.addInt(input.readEnum()); + } + input.popLimit(limit); + 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.devicesandservices.health.v4.ObservationSampleTime sampleTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.ObservationSampleTime, + com.google.devicesandservices.health.v4.ObservationSampleTime.Builder, + com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder> + sampleTimeBuilder_; + + /** + * + * + *
+     * Required. Time when the symptoms were logged.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleTime field is set. + */ + public boolean hasSampleTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. Time when the symptoms were logged.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleTime. + */ + public com.google.devicesandservices.health.v4.ObservationSampleTime getSampleTime() { + if (sampleTimeBuilder_ == null) { + return sampleTime_ == null + ? com.google.devicesandservices.health.v4.ObservationSampleTime.getDefaultInstance() + : sampleTime_; + } else { + return sampleTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Time when the symptoms were logged.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleTime( + com.google.devicesandservices.health.v4.ObservationSampleTime value) { + if (sampleTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sampleTime_ = value; + } else { + sampleTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Time when the symptoms were logged.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSampleTime( + com.google.devicesandservices.health.v4.ObservationSampleTime.Builder builderForValue) { + if (sampleTimeBuilder_ == null) { + sampleTime_ = builderForValue.build(); + } else { + sampleTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Time when the symptoms were logged.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSampleTime( + com.google.devicesandservices.health.v4.ObservationSampleTime value) { + if (sampleTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && sampleTime_ != null + && sampleTime_ + != com.google.devicesandservices.health.v4.ObservationSampleTime + .getDefaultInstance()) { + getSampleTimeBuilder().mergeFrom(value); + } else { + sampleTime_ = value; + } + } else { + sampleTimeBuilder_.mergeFrom(value); + } + if (sampleTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Time when the symptoms were logged.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSampleTime() { + bitField0_ = (bitField0_ & ~0x00000001); + sampleTime_ = null; + if (sampleTimeBuilder_ != null) { + sampleTimeBuilder_.dispose(); + sampleTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Time when the symptoms were logged.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.devicesandservices.health.v4.ObservationSampleTime.Builder + getSampleTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSampleTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Time when the symptoms were logged.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder + getSampleTimeOrBuilder() { + if (sampleTimeBuilder_ != null) { + return sampleTimeBuilder_.getMessageOrBuilder(); + } else { + return sampleTime_ == null + ? com.google.devicesandservices.health.v4.ObservationSampleTime.getDefaultInstance() + : sampleTime_; + } + } + + /** + * + * + *
+     * Required. Time when the symptoms were logged.
+     * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.ObservationSampleTime, + com.google.devicesandservices.health.v4.ObservationSampleTime.Builder, + com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder> + internalGetSampleTimeFieldBuilder() { + if (sampleTimeBuilder_ == null) { + sampleTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.devicesandservices.health.v4.ObservationSampleTime, + com.google.devicesandservices.health.v4.ObservationSampleTime.Builder, + com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder>( + getSampleTime(), getParentForChildren(), isClean()); + sampleTime_ = null; + } + return sampleTimeBuilder_; + } + + private com.google.protobuf.Internal.IntList symptoms_ = emptyIntList(); + + private void ensureSymptomsIsMutable() { + if (!symptoms_.isModifiable()) { + symptoms_ = makeMutableCopy(symptoms_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Required. List of symptoms experienced.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the symptoms. + */ + public java.util.List + getSymptomsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.devicesandservices.health.v4.Symptoms.SymptomValue>( + symptoms_, symptoms_converter_); + } + + /** + * + * + *
+     * Required. List of symptoms experienced.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of symptoms. + */ + public int getSymptomsCount() { + return symptoms_.size(); + } + + /** + * + * + *
+     * Required. List of symptoms experienced.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The symptoms at the given index. + */ + public com.google.devicesandservices.health.v4.Symptoms.SymptomValue getSymptoms(int index) { + return symptoms_converter_.convert(symptoms_.getInt(index)); + } + + /** + * + * + *
+     * Required. List of symptoms experienced.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The symptoms to set. + * @return This builder for chaining. + */ + public Builder setSymptoms( + int index, com.google.devicesandservices.health.v4.Symptoms.SymptomValue value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSymptomsIsMutable(); + symptoms_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. List of symptoms experienced.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The symptoms to add. + * @return This builder for chaining. + */ + public Builder addSymptoms( + com.google.devicesandservices.health.v4.Symptoms.SymptomValue value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSymptomsIsMutable(); + symptoms_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. List of symptoms experienced.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The symptoms to add. + * @return This builder for chaining. + */ + public Builder addAllSymptoms( + java.lang.Iterable + values) { + ensureSymptomsIsMutable(); + for (com.google.devicesandservices.health.v4.Symptoms.SymptomValue value : values) { + symptoms_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. List of symptoms experienced.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearSymptoms() { + symptoms_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. List of symptoms experienced.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for symptoms. + */ + public java.util.List getSymptomsValueList() { + symptoms_.makeImmutable(); + return symptoms_; + } + + /** + * + * + *
+     * Required. List of symptoms experienced.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of symptoms at the given index. + */ + public int getSymptomsValue(int index) { + return symptoms_.getInt(index); + } + + /** + * + * + *
+     * Required. List of symptoms experienced.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for symptoms to set. + * @return This builder for chaining. + */ + public Builder setSymptomsValue(int index, int value) { + ensureSymptomsIsMutable(); + symptoms_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. List of symptoms experienced.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for symptoms to add. + * @return This builder for chaining. + */ + public Builder addSymptomsValue(int value) { + ensureSymptomsIsMutable(); + symptoms_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. List of symptoms experienced.
+     * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The enum numeric values on the wire for symptoms to add. + * @return This builder for chaining. + */ + public Builder addAllSymptomsValue(java.lang.Iterable values) { + ensureSymptomsIsMutable(); + for (int value : values) { + symptoms_.addInt(value); + } + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.devicesandservices.health.v4.Symptoms) + } + + // @@protoc_insertion_point(class_scope:google.devicesandservices.health.v4.Symptoms) + private static final com.google.devicesandservices.health.v4.Symptoms DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devicesandservices.health.v4.Symptoms(); + } + + public static com.google.devicesandservices.health.v4.Symptoms getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Symptoms 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.devicesandservices.health.v4.Symptoms getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SymptomsOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SymptomsOrBuilder.java new file mode 100644 index 000000000000..445e42561200 --- /dev/null +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/SymptomsOrBuilder.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/devicesandservices/health/v4/data_model.proto +// Protobuf Java Version: 4.33.6 + +package com.google.devicesandservices.health.v4; + +@com.google.protobuf.Generated +public interface SymptomsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devicesandservices.health.v4.Symptoms) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Time when the symptoms were logged.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sampleTime field is set. + */ + boolean hasSampleTime(); + + /** + * + * + *
+   * Required. Time when the symptoms were logged.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sampleTime. + */ + com.google.devicesandservices.health.v4.ObservationSampleTime getSampleTime(); + + /** + * + * + *
+   * Required. Time when the symptoms were logged.
+   * 
+ * + * + * .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.devicesandservices.health.v4.ObservationSampleTimeOrBuilder getSampleTimeOrBuilder(); + + /** + * + * + *
+   * Required. List of symptoms experienced.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the symptoms. + */ + java.util.List getSymptomsList(); + + /** + * + * + *
+   * Required. List of symptoms experienced.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of symptoms. + */ + int getSymptomsCount(); + + /** + * + * + *
+   * Required. List of symptoms experienced.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The symptoms at the given index. + */ + com.google.devicesandservices.health.v4.Symptoms.SymptomValue getSymptoms(int index); + + /** + * + * + *
+   * Required. List of symptoms experienced.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for symptoms. + */ + java.util.List getSymptomsValueList(); + + /** + * + * + *
+   * Required. List of symptoms experienced.
+   * 
+ * + * + * repeated .google.devicesandservices.health.v4.Symptoms.SymptomValue symptoms = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of symptoms at the given index. + */ + int getSymptomsValue(int index); +} diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/TotalCaloriesRollupValue.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/TotalCaloriesRollupValue.java index e781ed9124a8..f524d24f4ddf 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/TotalCaloriesRollupValue.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/TotalCaloriesRollupValue.java @@ -25,6 +25,17 @@ * *
  * Represents the result of the rollup of the user's total calories.
+ *
+ * Note: Queries for the `total-calories` data type must include a time
+ * interval filter (such as
+ * [`total_calories.interval.start_time`][google.devicesandservices.health.v4main.ObservationTimeInterval.start_time]
+ * or
+ * [`total_calories.interval.civil_start_time`][google.devicesandservices.health.v4main.ObservationTimeInterval.civil_start_time]).
+ * The maximum range is 14 days.
+ *
+ * Example filter query:
+ * `total_calories.interval.start_time >= "2026-04-20T00:00:00Z" AND
+ * total_calories.interval.start_time < "2026-04-21T00:00:00Z"`
  * 
* * Protobuf type {@code google.devicesandservices.health.v4.TotalCaloriesRollupValue} @@ -279,6 +290,17 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * *
    * Represents the result of the rollup of the user's total calories.
+   *
+   * Note: Queries for the `total-calories` data type must include a time
+   * interval filter (such as
+   * [`total_calories.interval.start_time`][google.devicesandservices.health.v4main.ObservationTimeInterval.start_time]
+   * or
+   * [`total_calories.interval.civil_start_time`][google.devicesandservices.health.v4main.ObservationTimeInterval.civil_start_time]).
+   * The maximum range is 14 days.
+   *
+   * Example filter query:
+   * `total_calories.interval.start_time >= "2026-04-20T00:00:00Z" AND
+   * total_calories.interval.start_time < "2026-04-21T00:00:00Z"`
    * 
* * Protobuf type {@code google.devicesandservices.health.v4.TotalCaloriesRollupValue} diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/WebhookNotificationCloudLogProto.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/WebhookNotificationCloudLogProto.java index 2e4426c510e5..eb5cc8c005e0 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/WebhookNotificationCloudLogProto.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/WebhookNotificationCloudLogProto.java @@ -59,14 +59,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "api/field_behavior.proto\032\025google/rpc/htt" + "p.proto\"S\n\033WebhookNotificationCloudLog\0224" + "\n\rhttp_response\030\001 \001(\0132\030.google.rpc.HttpR" - + "esponseB\003\340A\002B\226\002\n\'com.google.devicesandse" + + "esponseB\003\340A\002B\222\002\n\'com.google.devicesandse" + "rvices.health.v4B WebhookNotificationClo" - + "udLogProtoP\001ZRgoogle.golang.org/genproto" + + "udLogProtoP\001ZNgoogle.golang.org/genproto" + "/googleapis/devicesandservices/health/ap" - + "iv4main;healthpb\252\002#Google.DevicesAndServ" - + "ices.Health.V4\312\002#Google\\DevicesAndServic" - + "es\\Health\\V4\352\002&Google::DevicesAndService" - + "s::Health::V4b\006proto3" + + "iv4;healthpb\252\002#Google.DevicesAndServices" + + ".Health.V4\312\002#Google\\DevicesAndServices\\H" + + "ealth\\V4\352\002&Google::DevicesAndServices::H" + + "ealth::V4b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/WeightQuantity.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/WeightQuantity.java index 0400e8fe08e0..8c0019510472 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/WeightQuantity.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/WeightQuantity.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Value representing the weight in grams.
+   * Required. The weight value in grams.
    * 
* * optional double grams = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -94,7 +94,7 @@ public boolean hasGrams() { * * *
-   * Required. Value representing the weight in grams.
+   * Required. The weight value in grams.
    * 
* * optional double grams = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -500,7 +500,7 @@ public Builder mergeFrom( * * *
-     * Required. Value representing the weight in grams.
+     * Required. The weight value in grams.
      * 
* * optional double grams = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -516,7 +516,7 @@ public boolean hasGrams() { * * *
-     * Required. Value representing the weight in grams.
+     * Required. The weight value in grams.
      * 
* * optional double grams = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -532,7 +532,7 @@ public double getGrams() { * * *
-     * Required. Value representing the weight in grams.
+     * Required. The weight value in grams.
      * 
* * optional double grams = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -552,7 +552,7 @@ public Builder setGrams(double value) { * * *
-     * Required. Value representing the weight in grams.
+     * Required. The weight value in grams.
      * 
* * optional double grams = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/WeightQuantityOrBuilder.java b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/WeightQuantityOrBuilder.java index 7dfed0c8f4d4..13fac324da3e 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/WeightQuantityOrBuilder.java +++ b/java-health/proto-google-cloud-health-v4/src/main/java/com/google/devicesandservices/health/v4/WeightQuantityOrBuilder.java @@ -30,7 +30,7 @@ public interface WeightQuantityOrBuilder * * *
-   * Required. Value representing the weight in grams.
+   * Required. The weight value in grams.
    * 
* * optional double grams = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -43,7 +43,7 @@ public interface WeightQuantityOrBuilder * * *
-   * Required. Value representing the weight in grams.
+   * Required. The weight value in grams.
    * 
* * optional double grams = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_coordinates.proto b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_coordinates.proto index 24c646b40119..abcb1e46c289 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_coordinates.proto +++ b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_coordinates.proto @@ -23,7 +23,7 @@ import "google/type/date.proto"; import "google/type/timeofday.proto"; option csharp_namespace = "Google.DevicesAndServices.Health.V4"; -option go_package = "google.golang.org/genproto/googleapis/devicesandservices/health/apiv4main;healthpb"; +option go_package = "google.golang.org/genproto/googleapis/devicesandservices/health/apiv4;healthpb"; option java_multiple_files = true; option java_outer_classname = "DataCoordinatesProto"; option java_package = "com.google.devicesandservices.health.v4"; diff --git a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_model.proto b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_model.proto index f39f8e48008e..06f422f00754 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_model.proto +++ b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_model.proto @@ -25,7 +25,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/date.proto"; option csharp_namespace = "Google.DevicesAndServices.Health.V4"; -option go_package = "google.golang.org/genproto/googleapis/devicesandservices/health/apiv4main;healthpb"; +option go_package = "google.golang.org/genproto/googleapis/devicesandservices/health/apiv4;healthpb"; option java_multiple_files = true; option java_outer_classname = "DataModelProto"; option java_package = "com.google.devicesandservices.health.v4"; @@ -299,6 +299,27 @@ enum VolumeUnit { PINT_US = 8; } +// Ovulation test result. +enum OvulationTestResult { + // Unspecified result. + OVULATION_TEST_RESULT_UNSPECIFIED = 0; + + // Negative result. + NEGATIVE = 1; + + // Luteinizing hormone surge. + LUTEINIZING_HORMONE_SURGE = 2; + + // Estrogen surge. + ESTROGEN_SURGE = 3; + + // Positive result. + POSITIVE = 4; + + // Indeterminate result. + INDETERMINATE = 5; +} + // Record of active zone minutes in a given time interval. message ActiveZoneMinutes { // Represents different heart rate zones. @@ -987,45 +1008,553 @@ message Exercise { } // The type of activity performed during an exercise. + // May receive new values in the future. enum ExerciseType { // Exercise type is unspecified. EXERCISE_TYPE_UNSPECIFIED = 0; - // Running type. - RUNNING = 1; + // Aerobic workout type. + AEROBIC_WORKOUT = 13; - // Walking type. - WALKING = 2; + // Archery type. + ARCHERY = 47; + + // Assault bike type. + ASSAULT_BIKE = 164; + + // Backpacking type. + BACKPACKING = 181; + + // Badminton type. + BADMINTON = 48; + + // Ballet type. + BALLET = 103; + + // Ballroom dance type. + BALLROOM_DANCE = 156; + + // Barre class type. + BARRE_CLASS = 49; + + // Baseball type. + BASEBALL = 50; + + // Basketball type. + BASKETBALL = 51; // Biking type. BIKING = 3; - // Swimming type. - SWIMMING = 4; + // Billiards type. + BILLIARDS = 180; + + // Body weight type. + BODY_WEIGHT = 149; + + // Bootcamp type. + BOOTCAMP = 14; + + // Bowling type. + BOWLING = 52; + + // Boxing type. + BOXING = 53; + + // Breakdancing type. + BREAKDANCING = 157; + + // Calisthenics type. + CALISTHENICS = 54; + + // Canoeing type. + CANOEING = 15; + + // Cardio sculpt type. + CARDIO_SCULPT = 129; + + // Cardio workout type. + CARDIO_WORKOUT = 140; + + // Carpentry type. + CARPENTRY = 108; + + // Cheerleading type. + CHEERLEADING = 165; + + // Circuit training type. + CIRCUIT_TRAINING = 16; + + // Cleaning type. + CLEANING = 105; + + // Climbing type. + CLIMBING = 55; + + // Core training type. + CORE_TRAINING = 17; + + // Cricket type. + CRICKET = 56; + + // Croquet type. + CROQUET = 111; + + // Cross country ski type. + CROSS_COUNTRY_SKI = 18; + + // Cross training type. + CROSS_TRAINING = 57; + + // Crossfit type. + CROSSFIT = 19; + + // Curling type. + CURLING = 58; + + // Dancing type. + DANCING = 20; + + // Diving type. + DIVING = 59; + + // Electric bike type. + ELECTRIC_BIKE = 152; + + // Electric scooter type. + ELECTRIC_SCOOTER = 168; + + // Elliptical type. + ELLIPTICAL = 21; + + // Equestrian sports type. + EQUESTRIAN_SPORTS = 60; + + // Exercise class type. + EXERCISE_CLASS = 61; + + // Fencing type. + FENCING = 62; + + // Field hockey type. + FIELD_HOCKEY = 113; + + // Fishing type. + FISHING = 63; + + // Fitness gaming type. + FITNESS_GAMING = 64; + + // Foiling type. + FOILING = 175; + + // Football american type. + FOOTBALL_AMERICAN = 65; + + // Football australian type. + FOOTBALL_AUSTRALIAN = 66; + + // Free weights type. + FREE_WEIGHTS = 148; + + // Frisbee playing general type. + FRISBEE_PLAYING_GENERAL = 67; + + // Functional strength training type. + FUNCTIONAL_STRENGTH_TRAINING = 68; + + // Gardening type. + GARDENING = 107; + + // Golf type. + GOLF = 22; + + // Gymnastics type. + GYMNASTICS = 69; + + // Handball type. + HANDBALL = 70; + + // Hand cycling type. + HAND_CYCLING = 71; + + // Hiit type. + HIIT = 9; // Hiking type. HIKING = 5; - // Yoga type. - YOGA = 6; + // Hip hop type. + HIP_HOP = 158; + + // Hockey type. + HOCKEY = 72; + + // Hoeing type. + HOEING = 109; + + // Household chores type. + HOUSEHOLD_CHORES = 137; + + // Hunting type. + HUNTING = 73; + + // Ice skating type. + ICE_SKATING = 127; + + // Incline run type. + INCLINE_RUN = 142; + + // Incline walk type. + INCLINE_WALK = 146; + + // Indoor climbing type. + INDOOR_CLIMBING = 23; + + // Interval workout type. + INTERVAL_WORKOUT = 24; + + // Jazz dance type. + JAZZ_DANCE = 154; + + // Jiu jitsu type. + JIU_JITSU = 160; + + // Jumping rope type. + JUMPING_ROPE = 74; + + // Karate type. + KARATE = 159; + + // Kayaking type. + KAYAKING = 25; + + // Kickboxing type. + KICKBOXING = 26; + + // Kitesurfing type. + KITESURFING = 172; + + // Lacrosse type. + LACROSSE = 75; + + // Martial arts type. + MARTIAL_ARTS = 27; + + // Meditate type. + MEDITATE = 28; + + // Modern dance type. + MODERN_DANCE = 153; + + // Motocross type. + MOTOCROSS = 114; + + // Motorcycle type. + MOTORCYCLE = 121; + + // Mountain bike type. + MOUNTAIN_BIKE = 128; + + // Mowing lawn type. + MOWING_LAWN = 106; + + // Muay thai type. + MUAY_THAI = 162; + + // Multisport type. + MULTISPORT = 76; + + // Musical performance type. + MUSICAL_PERFORMANCE = 163; + + // Nordic walking type. + NORDIC_WALKING = 145; + + // Orienteering type. + ORIENTEERING = 115; + + // Other type. + OTHER = 12; + + // Outdoor bike type. + OUTDOOR_BIKE = 29; + + // Outdoor workout type. + OUTDOOR_WORKOUT = 30; + + // Paddleboarding type. + PADDLEBOARDING = 31; + + // Padel type. + PADEL = 176; + + // Painting type. + PAINTING = 170; + + // Paragliding type. + PARAGLIDING = 78; + + // Parkour type. + PARKOUR = 166; + + // Pickelball type. + PICKELBALL = 79; // Pilates type. PILATES = 7; - // Workout type. - WORKOUT = 8; + // Polo type. + POLO = 116; - // HIIT type. - HIIT = 9; + // Powerlifting type. + POWERLIFTING = 32; - // Weightlifting type. - WEIGHTLIFTING = 10; + // Power walking type. + POWER_WALKING = 143; + + // Racket sports type. + RACKET_SPORTS = 169; + + // Racquetball type. + RACQUETBALL = 80; + + // Resistance bands type. + RESISTANCE_BANDS = 151; + + // Rock climbing type. + ROCK_CLIMBING = 123; + + // Rollerblading type. + ROLLERBLADING = 33; + + // Roller skating type. + ROLLER_SKATING = 118; + + // Rowing type. + ROWING = 81; + + // Rowing machine type. + ROWING_MACHINE = 34; + + // Rucking type. + RUCKING = 144; + + // Rugby type. + RUGBY = 82; + + // Running type. + RUNNING = 1; + + // Sailing type. + SAILING = 83; + + // Scootering type. + SCOOTERING = 167; + + // Scuba diving type. + SCUBA_DIVING = 84; + + // Shooting type. + SHOOTING = 104; + + // Shoveling type. + SHOVELING = 171; + + // Skateboarding type. + SKATEBOARDING = 117; + + // Skating type. + SKATING = 35; + + // Skiing type. + SKIING = 36; + + // Skydiving type. + SKYDIVING = 182; + + // Snorkeling type. + SNORKELING = 37; + + // Snowboarding type. + SNOWBOARDING = 38; + + // Snowmobiling type. + SNOWMOBILING = 179; + + // Snowshoeing type. + SNOWSHOEING = 85; + + // Snow sport type. + SNOW_SPORT = 86; + + // Soccer type. + SOCCER = 87; + + // Softball type. + SOFTBALL = 88; + + // Speed skating type. + SPEED_SKATING = 178; + + // Spinning type. + SPINNING = 39; + + // Sport type. + SPORT = 40; + + // Squash type. + SQUASH = 89; + + // Stairclimber type. + STAIRCLIMBER = 41; + + // Stationary bike type. + STATIONARY_BIKE = 139; + + // Step training type. + STEP_TRAINING = 90; // Strength training type. STRENGTH_TRAINING = 11; - // Other type. - OTHER = 12; + // Stretching type. + STRETCHING = 42; + + // Stroller walk type. + STROLLER_WALK = 122; + + // Surfing type. + SURFING = 43; + + // Swimming type. + SWIMMING = 4; + + // Swimming open water type. + SWIMMING_OPEN_WATER = 91; + + // Swimming pool type. + SWIMMING_POOL = 101; + + // Synchronized swimming type. + SYNCHRONIZED_SWIMMING = 177; + + // Tabata workout type. + TABATA_WORKOUT = 130; + + // Table tennis type. + TABLE_TENNIS = 92; + + // Taekwondo type. + TAEKWONDO = 161; + + // Tai chi type. + TAI_CHI = 93; + + // Tango type. + TANGO = 155; + + // Tennis type. + TENNIS = 44; + + // Track and field type. + TRACK_AND_FIELD = 94; + + // Trail run type. + TRAIL_RUN = 141; + + // Trampoline type. + TRAMPOLINE = 119; + + // Treadmill type. + TREADMILL = 45; + + // Treadmill walk type. + TREADMILL_WALK = 138; + + // Trx type. + TRX = 131; + + // Ultimate frisbee type. + ULTIMATE_FRISBEE = 112; + + // Unicycling type. + UNICYCLING = 102; + + // Volleyball type. + VOLLEYBALL = 95; + + // Volleyball beach type. + VOLLEYBALL_BEACH = 120; + + // Wakeboarding type. + WAKEBOARDING = 173; + + // Walking type. + WALKING = 2; + + // Walk with weights type. + WALK_WITH_WEIGHTS = 147; + + // Water aerobics type. + WATER_AEROBICS = 96; + + // Water jogging type. + WATER_JOGGING = 126; + + // Water polo type. + WATER_POLO = 97; + + // Water skiing type. + WATER_SKIING = 124; + + // Water sport type. + WATER_SPORT = 98; + + // Water volleyball type. + WATER_VOLLEYBALL = 125; + + // Weeding type. + WEEDING = 110; + + // Weightlifting type. + WEIGHTLIFTING = 10; + + // Weight machines type. + WEIGHT_MACHINES = 150; + + // Weights type. + WEIGHTS = 46; + + // Wheelchair type. + WHEELCHAIR = 99; + + // Windsurfing type. + WINDSURFING = 174; + + // Workout type. + WORKOUT = 8; + + // Wrestling type. + WRESTLING = 100; + + // Yoga type. + YOGA = 6; + + // Yoga bikram type. + YOGA_BIKRAM = 132; + + // Yoga hatha type. + YOGA_HATHA = 133; + + // Yoga power type. + YOGA_POWER = 134; + + // Yoga vinyasa type. + YOGA_VINYASA = 135; + + // Zumba type. + ZUMBA = 136; } // Required. Observed exercise interval @@ -1061,7 +1590,12 @@ message Exercise { ExerciseMetadata exercise_metadata = 11 [(google.api.field_behavior) = OPTIONAL]; - // Required. Exercise display name. + // Required. The localized, human-readable name of the exercise. + // For all exercise types other than `OTHER`, the system ignores client + // input and overrides this field with a generated name based on + // `exercise_type` (e.g., "Walking" for `WALKING`). If `exercise_type` is + // `OTHER`, this field can contain the user's custom, free-form display + // name. string display_name = 12 [(google.api.field_behavior) = REQUIRED]; // Optional. Duration excluding pauses. @@ -1469,7 +2003,7 @@ message MetricsSummary { // Represents the weight quantity. message WeightQuantity { - // Required. Value representing the weight in grams. + // Required. The weight value in grams. optional double grams = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. Value representing the user provided unit. @@ -1478,7 +2012,7 @@ message WeightQuantity { // Represents the energy quantity. message EnergyQuantity { - // Required. Value representing the energy in kilocalories. + // Required. The energy value in kilocalories. optional double kcal = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. Value representing the user provided unit. @@ -1487,14 +2021,14 @@ message EnergyQuantity { // Represents the quantity of a nutrient. message NutrientQuantity { - // Required. Value representing the quantity of the nutrient. + // Required. The quantity of the nutrient, measured in grams. WeightQuantity quantity = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Value representing the nutrient. + // Required. The nutrient type. Nutrient nutrient = 2 [(google.api.field_behavior) = REQUIRED]; } -// Holds information about a user logged food. +// Holds information about food logged by a user. // // There are two ways of creating a nutrition log based on the food type: // 1. Identified food: Using the food field, which is a reference to a Food @@ -1506,12 +2040,12 @@ message NutrientQuantity { // `total_fat` fields manually. // // The identified food is preferred over the anonymous food. -// Nutrition logs created from anonymous food are not be editable. +// Nutrition logs created from anonymous food are not editable. message NutritionLog { // Represents different properties and information about the serving of a // specific food. message Serving { - // Optional. Amount of food consumed, fractional values are supported. + // Optional. The number of servings. optional double amount = 1 [(google.api.field_behavior) = OPTIONAL]; // Required. Food measurement unit @@ -1528,56 +2062,45 @@ message NutritionLog { [(google.api.field_behavior) = OUTPUT_ONLY]; } - // Required. Observed interval. + // Required. The time window when the food was logged. SessionTimeInterval interval = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. Value representing the nutrients of the nutrition log. + // Optional. An array of individual nutrient values for the nutrition log. repeated NutrientQuantity nutrients = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Value representing the energy of the nutrition log. - // For nutrition logs created from an identified food, this field will be - // populated based on the referenced food. For anonymous food, this field will - // be populated manually. + // Optional. The total energy of the food, measured in kilocalories (`kcal`). EnergyQuantity energy = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Value representing the energy from fat of the nutrition log. - // For nutrition logs created from an identified food, this field will be - // populated based on the referenced food. For anonymous food, this field will - // be populated manually. + // Optional. The energy from fat, measured in kilocalories (`kcal`). EnergyQuantity energy_from_fat = 5 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Value representing the total carbohydrate of the nutrition log. - // For nutrition logs created from an identified food, this field will be - // populated based on the referenced food. For anonymous food, this field will - // be populated manually. + // Optional. The total carbohydrate content, measured in grams. WeightQuantity total_carbohydrate = 7 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Value representing the total fat of the nutrition log. - // For nutrition logs created from an identified food, this field will be - // populated based on the referenced food. For anonymous food, this field will - // be populated manually. + // Optional. The total fat content, measured in grams. WeightQuantity total_fat = 8 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Value representing the meal type of the nutrition log. + // Optional. The meal category. One of `BREAKFAST`, `LUNCH`, `DINNER`, or + // `SNACK`. MealType meal_type = 13 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Value representing the nutrition log serving. + // Optional. The serving information for the logged food. Serving serving = 14 [(google.api.field_behavior) = OPTIONAL]; - // Required. Represents the food ID. + // Optional. The resource name of the Food item. Required when creating a + // nutrition log from an identified food. For anonymous food logs, use the + // `food_display_name` field instead. string food = 15 [ - (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "health.googleapis.com/DataPoint" } ]; - // Value representing the display name of the food. - // For nutrition logs created from an identified food, this field will be - // populated based on the referenced food. For anonymous food, this field will - // be populated manually. + // The display name of the food. For identified food logs, this is populated + // automatically from the referenced food. string food_display_name = 16; } @@ -1886,6 +2409,10 @@ message Sleep { StagesState stages_status = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Sleep and sleep stages algorithms finished processing. + // A `true` value indicates whether all data processing for the session is + // complete. + // A `false` value means sleep period is detected but sleep stages is still + // processing. bool processed = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Naps are sleeps without stages and relatively short @@ -1898,6 +2425,12 @@ message Sleep { // Optional. Sleep identifier relevant in the context of the data source. string external_id = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. `main_sleep`: the longest sleep session with stages within + // one day. If no sleep session has stages, then the longest sleep is the + // `main_sleep`. If there are multiple days of sleep in the response, there + // is one `main_sleep` per day. + bool main_sleep = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; } // @@ -1999,7 +2532,8 @@ message Sleep { repeated OutOfBedSegment out_of_bed_segments = 6 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Sleep metadata: processing, main, manually edited, stages status. + // Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and + // `stages_status`. SleepMetadata metadata = 8 [(google.api.field_behavior) = OPTIONAL]; // Output only. Sleep summary: metrics and stages summary. @@ -2012,6 +2546,11 @@ message Sleep { // Output only. Last update time of this sleep observation. google.protobuf.Timestamp update_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of short awake segments (under a set threshold) that are + // part of the sleep session. These can overlap with sleep stages. + repeated SleepStage short_awakenings = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Step count over the time interval. @@ -2093,6 +2632,17 @@ message TimeInHeartRateZoneRollupValue { } // Represents the result of the rollup of the user's total calories. +// +// Note: Queries for the `total-calories` data type must include a time +// interval filter (such as +// [`total_calories.interval.start_time`][google.devicesandservices.health.v4main.ObservationTimeInterval.start_time] +// or +// [`total_calories.interval.civil_start_time`][google.devicesandservices.health.v4main.ObservationTimeInterval.civil_start_time]). +// The maximum range is 14 days. +// +// Example filter query: +// `total_calories.interval.start_time >= "2026-04-20T00:00:00Z" AND +// total_calories.interval.start_time < "2026-04-21T00:00:00Z"` message TotalCaloriesRollupValue { // Sum of the total calories in kilocalories. optional double kcal_sum = 1; @@ -2325,3 +2875,435 @@ message ActiveEnergyBurnedRollupValue { // Output only. Sum of the active energy burned in kilocalories. optional double kcal_sum = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Menstrual period record. +message MenstrualPeriod { + // Required. Observed interval. + ObservationTimeInterval interval = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Standard free-form notes captured at manual logging. + string notes = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Ovulation test record. +message OvulationTest { + // Required. The time at which ovulation test was measured. + ObservationSampleTime sample_time = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The result of the ovulation test. + OvulationTestResult result = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Symptoms logged by the user. +message Symptoms { + // Enum representing possible symptom values. + enum SymptomValue { + // Unspecified symptom value. + SYMPTOM_VALUE_UNSPECIFIED = 0; + + // Abdominal cramps. + CRAMPS = 1; + + // Headache. + HEADACHE = 2; + + // Tender breasts. + TENDER_BREASTS = 3; + + // Acne. + ACNE = 4; + + // Feeling sick or unwell. + SICK = 5; + + // Bloating or abdominal swelling. + BLOATED = 6; + + // Hot flashes. + HOT_FLASHES = 7; + + // Premenstrual syndrome symptoms. + PMS = 8; + + // Coughing. + COUGH = 9; + + // Fever or elevated body temperature. + FEVER = 10; + + // Difficulty breathing or shortness of breath. + DIFFICULTY_BREATHING = 11; + + // Back pain. + BACK_PAIN = 12; + + // Shakiness or tremors. + SHAKINESS = 13; + + // Excessive hunger. + HUNGER = 14; + + // Excessive sweating. + SWEATING = 15; + + // Anxiety or nervousness. + ANXIETY = 16; + + // Excessive thirst. + THIRST = 17; + + // Frequent urination. + FREQUENT_URINATION = 18; + + // Blurred vision. + BLURRED_VISION = 19; + + // Other symptoms. + OTHER = 20; + + // High sex drive. + SEX_DRIVE_HIGH = 21; + + // Medium sex drive. + SEX_DRIVE_MEDIUM = 22; + + // Low sex drive. + SEX_DRIVE_LOW = 23; + + // Heart palpitations or racing heart. + HEART_PALPITATIONS = 24; + + // Fainting or loss of consciousness. + FAINTING = 25; + + // Chest pain or discomfort. + CHEST_PAIN = 26; + + // Fatigue or extreme tiredness. + FATIGUE = 27; + + // Confusion or mental fogginess. + CONFUSION = 28; + + // Dizziness or lightheadedness. + DIZZINESS = 29; + + // Abdominal pain. + ABDOMINAL_PAIN = 30; + + // Bladder leaks. + BLADDER_LEAKS = 31; + + // Bleeding gums. + BLEEDING_GUMS = 32; + + // Brain fog. + BRAIN_FOG = 33; + + // Burning mouth. + BURNING_MOUTH = 34; + + // Constipation. + CONSTIPATION = 35; + + // Food cravings. + CRAVINGS = 36; + + // Decreased appetite. + DECREASED_APPETITE = 37; + + // Diarrhea. + DIARRHEA = 38; + + // Drawing pain. + DRAWING_PAIN = 39; + + // Dry eyes. + DRY_EYES = 40; + + // Dry hair. + DRY_HAIR = 41; + + // Dry skin. + DRY_SKIN = 42; + + // Exhaustion. + EXHAUSTION = 43; + + // Feeling good or well. + FEEL_GOOD = 44; + + // Food aversions. + FOOD_AVERSIONS = 45; + + // Hair loss. + HAIR_LOSS = 46; + + // Heartburn. + HEARTBURN = 47; + + // Hyperpigmentation. + HYPERPIGMENTATION = 48; + + // Increased appetite. + INCREASED_APPETITE = 49; + + // Increased appetite V2. + INCREASED_APPETITE_V2 = 50; + + // Insomnia or difficulty sleeping. + INSOMNIA = 51; + + // Joint pain. + JOINT_PAIN = 52; + + // Leg cramps. + LEG_CRAMPS = 53; + + // Milky nipple discharge. + MILKY_NIPPLE_DISCHARGE = 54; + + // Nausea. + NAUSEA = 55; + + // Night sweats. + NIGHT_SWEATS = 56; + + // Normal digestion. + NORMAL_DIGESTION = 57; + + // Normal stool. + NORMAL_STOOL = 58; + + // Perineum pain. + PERINEUM_PAIN = 59; + + // Sleepiness or drowsiness. + SLEEPINESS = 60; + + // Stretch marks. + STRETCH_MARKS = 61; + + // Swelling. + SWELLING = 62; + + // Vaginal dryness. + VAGINAL_DRYNESS = 63; + + // Vaginal itching. + VAGINAL_ITCHING = 64; + + // Vomiting. + VOMITING = 65; + } + + // Required. Time when the symptoms were logged. + ObservationSampleTime sample_time = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. List of symptoms experienced. + repeated SymptomValue symptoms = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Moods record. +message Moods { + // The mood. + enum Mood { + // Unspecified mood. + MOOD_UNSPECIFIED = 0; + + // Amazed. + AMAZED = 1; + + // Amused. + AMUSED = 2; + + // Angry. + ANGRY = 3; + + // Annoyed. + ANNOYED = 4; + + // Anxious. + ANXIOUS = 5; + + // Happy. + HAPPY = 6; + + // Content. + CONTENT = 7; + + // Sad. + SAD = 8; + + // Worried. + WORRIED = 9; + + // Frustrated. + FRUSTRATED = 10; + + // Excited. + EXCITED = 11; + + // Calm. + CALM = 12; + + // Stressed. + STRESSED = 13; + + // Ashamed. + ASHAMED = 14; + + // Brave. + BRAVE = 15; + + // Confident. + CONFIDENT = 16; + + // Disappointed. + DISAPPOINTED = 17; + + // Discouraged. + DISCOURAGED = 18; + + // Disgusted. + DISGUSTED = 19; + + // Drained. + DRAINED = 20; + + // Embarrassed. + EMBARRASSED = 21; + + // Grateful. + GRATEFUL = 22; + + // Guilty. + GUILTY = 23; + + // Hopeful. + HOPEFUL = 24; + + // Hopeless. + HOPELESS = 25; + + // Indifferent. + INDIFFERENT = 26; + + // Irritated. + IRRITATED = 27; + + // Jealous. + JEALOUS = 28; + + // Joyful. + JOYFUL = 29; + + // Lonely. + LONELY = 30; + + // Overwhelmed. + OVERWHELMED = 31; + + // Passionate. + PASSIONATE = 32; + + // Peaceful. + PEACEFUL = 33; + + // Proud. + PROUD = 34; + + // Relieved. + RELIEVED = 35; + + // Satisfied. + SATISFIED = 36; + + // Scared. + SCARED = 37; + + // Surprised. + SURPRISED = 38; + + // Energized. + ENERGIZED = 39; + + // Fatigued. + FATIGUED = 40; + + // Very calm. + VERY_CALM = 41; + + // Very stressed. + VERY_STRESSED = 42; + + // Neutral. + NEUTRAL = 43; + + // Afraid. + AFRAID = 44; + + // Hurting. + HURTING = 45; + + // Bored. + BORED = 46; + + // Bitter. + BITTER = 47; + + // Envious. + ENVIOUS = 48; + + // Confused. + CONFUSED = 49; + + // Curious. + CURIOUS = 50; + + // Awestruck. + AWESTRUCK = 51; + + // Inspired. + INSPIRED = 52; + + // Longing. + LONGING = 53; + + // Accomplished. + ACCOMPLISHED = 54; + + // Loving. + LOVING = 55; + + // Compassionate. + COMPASSIONATE = 56; + } + + // The valence. + enum Valence { + // Unspecified valence. + VALENCE_UNSPECIFIED = 0; + + // Unpleasant. + UNPLEASANT = 1; + + // Baseline. + BASELINE = 2; + + // Pleasant. + PLEASANT = 3; + } + + // Required. The time at which moods were measured. + ObservationSampleTime sample_time = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The moods logged. + repeated Mood moods = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The valences. + repeated Valence valences = 5 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_points.proto b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_points.proto index 64697a5a7ca3..0d6f8a725941 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_points.proto +++ b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_points.proto @@ -30,7 +30,7 @@ import "google/rpc/status.proto"; import "google/type/interval.proto"; option csharp_namespace = "Google.DevicesAndServices.Health.V4"; -option go_package = "google.golang.org/genproto/googleapis/devicesandservices/health/apiv4main;healthpb"; +option go_package = "google.golang.org/genproto/googleapis/devicesandservices/health/apiv4;healthpb"; option java_multiple_files = true; option java_outer_classname = "DataPointsProto"; option java_package = "com.google.devicesandservices.health.v4"; @@ -43,9 +43,19 @@ service DataPointsService { option (google.api.default_host) = "health.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly," + "https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly," "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly," + "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly," "https://www.googleapis.com/auth/googlehealth.location.readonly," - "https://www.googleapis.com/auth/googlehealth.sleep.readonly"; + "https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly," + "https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly," + "https://www.googleapis.com/auth/googlehealth.mindfulness.readonly," + "https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly," + "https://www.googleapis.com/auth/googlehealth.nutrition.writeonly," + "https://www.googleapis.com/auth/googlehealth.reproductive_health.readonly," + "https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly," + "https://www.googleapis.com/auth/googlehealth.sleep.readonly," + "https://www.googleapis.com/auth/googlehealth.sleep.writeonly"; // Get a single identifyable data point. rpc GetDataPoint(GetDataPointRequest) returns (DataPoint) { @@ -335,6 +345,22 @@ message DataPoint { // Optional. Data for points in the `blood-glucose` sample data type // collection. BloodGlucose blood_glucose = 46 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Data for points in the `menstrual-period` interval data type + // collection. + MenstrualPeriod menstrual_period = 49 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Data for points in the `ovulation-test` sample data type + // collection. + OvulationTest ovulation_test = 50 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Data for points in the `symptoms` sample data type + // collection. + Symptoms symptoms = 52 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Data for points in the `moods` sample data type collection. + Moods moods = 53 [(google.api.field_behavior) = OPTIONAL]; } // Identifier. Data point name, only supported for the subset of identifiable @@ -352,7 +378,7 @@ message DataPoint { // The `{data_type}` ID corresponds to the kebab-case version of the field // names in the [DataPoint // data][google.devicesandservices.health.v4.DataPoint] union - // field, e.g. `total-calories` for the `total_calories` field. + // field, e.g. `heart-rate` for the `heart_rate` field. // // The `{data_point}` ID can be client-provided or system-generated. // If client-provided, it must be a string of 4-63 characters, @@ -505,7 +531,7 @@ message ReconciledDataPoint { // The `{data_type}` ID corresponds to the kebab-case version of the field // names in the [DataPoint // data][google.devicesandservices.health.v4.DataPoint] union - // field, e.g. `total-calories` for the `total_calories` field. + // field, e.g. `heart-rate` for the `heart_rate` field. // // The `{data_point}` ID can be client-provided or system-generated. // If client-provided, it must be a string of 4-63 characters, @@ -1073,12 +1099,14 @@ message ReconcileDataPointsRequest { // // Format: `users/me/dataSourceFamilies/{data_source_family}` // - // The supported values are: - // - // - `users/me/dataSourceFamilies/all-sources` - default value - // - `users/me/dataSourceFamilies/google-wearables` - tracker devices - // - `users/me/dataSourceFamilies/google-sources` - Google first party - // sources + // - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + // from all available data sources. + // - `users/me/dataSourceFamilies/google-wearables` - Includes data from + // Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + // Watch). Excludes manually logged data. + // - `users/me/dataSourceFamilies/google-sources` - Includes first-party + // Google data, such as data from tracker devices, manually logged data, and + // Health Connect. string data_source_family = 5 [(google.api.field_behavior) = OPTIONAL]; } @@ -1115,7 +1143,7 @@ message RollUpDataPointsRequest { google.type.Interval range = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The size of the time window to group data points into before - // applying the aggregation functions. + // applying the aggregation functions. Must be at least 1 second. google.protobuf.Duration window_size = 3 [(google.api.field_behavior) = REQUIRED]; @@ -1138,10 +1166,14 @@ message RollUpDataPointsRequest { // // The supported values are: // - // - `users/me/dataSourceFamilies/all-sources` - default value - // - `users/me/dataSourceFamilies/google-wearables` - tracker devices - // - `users/me/dataSourceFamilies/google-sources` - Google first party - // sources + // - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + // from all available data sources. + // - `users/me/dataSourceFamilies/google-wearables` - Includes data from + // Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + // Watch). Excludes manually logged data. + // - `users/me/dataSourceFamilies/google-sources` - Includes first-party + // Google data, such as data from tracker devices, manually logged data, and + // Health Connect. string data_source_family = 7 [(google.api.field_behavior) = OPTIONAL]; } @@ -1201,10 +1233,14 @@ message DailyRollUpDataPointsRequest { // // The supported values are: // - // - `users/me/dataSourceFamilies/all-sources` - default value - // - `users/me/dataSourceFamilies/google-wearables` - tracker devices - // - `users/me/dataSourceFamilies/google-sources` - Google first party - // sources + // - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data + // from all available data sources. + // - `users/me/dataSourceFamilies/google-wearables` - Includes data from + // Google and Fitbit tracker devices (such as Fitbit trackers and Pixel + // Watch). Excludes manually logged data. + // - `users/me/dataSourceFamilies/google-sources` - Includes first-party + // Google data, such as data from tracker devices, manually logged data, and + // Health Connect. string data_source_family = 7 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_source.proto b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_source.proto index 64438beb6399..127d7b26a893 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_source.proto +++ b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_source.proto @@ -19,7 +19,7 @@ package google.devicesandservices.health.v4; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.DevicesAndServices.Health.V4"; -option go_package = "google.golang.org/genproto/googleapis/devicesandservices/health/apiv4main;healthpb"; +option go_package = "google.golang.org/genproto/googleapis/devicesandservices/health/apiv4;healthpb"; option java_multiple_files = true; option java_outer_classname = "DataSourceProto"; option java_package = "com.google.devicesandservices.health.v4"; diff --git a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_subscription_service.proto b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_subscription_service.proto index b0b3048776cc..e79c03f76822 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_subscription_service.proto +++ b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/data_subscription_service.proto @@ -26,7 +26,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.DevicesAndServices.Health.V4"; -option go_package = "google.golang.org/genproto/googleapis/devicesandservices/health/apiv4main;healthpb"; +option go_package = "google.golang.org/genproto/googleapis/devicesandservices/health/apiv4;healthpb"; option java_multiple_files = true; option java_outer_classname = "DataSubscriptionServiceProto"; option java_package = "com.google.devicesandservices.health.v4"; @@ -181,8 +181,8 @@ service DataSubscriptionService { // Request message for CreateSubscriber. message CreateSubscriberRequest { // Required. The parent resource where this subscriber will be created. - // Format: projects/{project} - // Example: projects/my-project-123 + // Format: projects/{project_number} + // Example: projects/1234567890 string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -325,7 +325,7 @@ message ListSubscriptionsRequest { // - `data_type` // // The `user` identifier (e.g., `user1` in `users/user1`) refers to the public - // `healthUserId` + // `health_user_id` // // Example: user = "users/user1" // Example: user = "users/user1" OR user = "users/user2" @@ -484,8 +484,9 @@ message Subscription { // A subscriber will only receive notifications for data types that are // declared here. // A subscription can only subscribe to the data types of the subscriber. - // Supported data types are: "altitude", "distance", "floors", "sleep", - // "steps", "weight". + // The values should be in the format + // "users/{health_user_id}/dataTypes/{data_type}" where `{data_type}` is one + // of "altitude", "distance", "floors", "sleep", "steps", "weight". repeated string data_types = 2 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "health.googleapis.com/DataType" } diff --git a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/health_profile.proto b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/health_profile.proto index 9d73d147566b..23af9dc61ad3 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/health_profile.proto +++ b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/health_profile.proto @@ -26,7 +26,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/date.proto"; option csharp_namespace = "Google.DevicesAndServices.Health.V4"; -option go_package = "google.golang.org/genproto/googleapis/devicesandservices/health/apiv4main;healthpb"; +option go_package = "google.golang.org/genproto/googleapis/devicesandservices/health/apiv4;healthpb"; option java_multiple_files = true; option java_outer_classname = "HealthProfileProto"; option java_package = "com.google.devicesandservices.health.v4"; @@ -41,8 +41,13 @@ service HealthProfileService { "https://www.googleapis.com/auth/googlehealth.ecg.readonly," "https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly," "https://www.googleapis.com/auth/googlehealth.irn.readonly," + "https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly," + "https://www.googleapis.com/auth/googlehealth.mindfulness.readonly," "https://www.googleapis.com/auth/googlehealth.profile.readonly," + "https://www.googleapis.com/auth/googlehealth.profile.writeonly," + "https://www.googleapis.com/auth/googlehealth.reproductive_health.readonly," "https://www.googleapis.com/auth/googlehealth.settings.readonly," + "https://www.googleapis.com/auth/googlehealth.settings.writeonly," "https://www.googleapis.com/auth/googlehealth.sleep.readonly"; // Returns user Profile details. @@ -556,8 +561,6 @@ message Settings { bool auto_stride_enabled = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The measurement unit defined in the user's account settings. - // - // Updates to this field are currently not supported. DistanceUnit distance_unit = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. The measurement unit defined in the user's account settings. diff --git a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/medical_device_info.proto b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/medical_device_info.proto index 0aa1db9fc852..fb85b52b0789 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/medical_device_info.proto +++ b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/medical_device_info.proto @@ -19,7 +19,7 @@ package google.devicesandservices.health.v4; import "google/api/field_behavior.proto"; option csharp_namespace = "Google.DevicesAndServices.Health.V4"; -option go_package = "google.golang.org/genproto/googleapis/devicesandservices/health/apiv4main;healthpb"; +option go_package = "google.golang.org/genproto/googleapis/devicesandservices/health/apiv4;healthpb"; option java_multiple_files = true; option java_outer_classname = "MedicalDeviceInfoProto"; option java_package = "com.google.devicesandservices.health.v4"; diff --git a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/webhook_notification_cloud_log.proto b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/webhook_notification_cloud_log.proto index dcb2f44ff5c0..63b2db1206dc 100644 --- a/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/webhook_notification_cloud_log.proto +++ b/java-health/proto-google-cloud-health-v4/src/main/proto/google/devicesandservices/health/v4/webhook_notification_cloud_log.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; import "google/rpc/http.proto"; option csharp_namespace = "Google.DevicesAndServices.Health.V4"; -option go_package = "google.golang.org/genproto/googleapis/devicesandservices/health/apiv4main;healthpb"; +option go_package = "google.golang.org/genproto/googleapis/devicesandservices/health/apiv4;healthpb"; option java_multiple_files = true; option java_outer_classname = "WebhookNotificationCloudLogProto"; option java_package = "com.google.devicesandservices.health.v4"; diff --git a/librarian.yaml b/librarian.yaml index 3706fa5b0a52..0bb38996c103 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.36.0 repo: googleapis/google-cloud-java sources: googleapis: - commit: 240b58fe7058f6fff77cba02f51d600170b6c421 - sha256: ca03f2c93b8f1e92fd75c87b2568992c96a2ecc37fde750c5bf83129fa17b407 + commit: ca91093129b6744ee1dbb062381cdf63dcec669b + sha256: 00a17d6b7b6269c2f3aacc094a8f89a06dc0d8fa92f517841fa2032940887d22 showcase: commit: f97fd357084b9e85ef5dd02ba084551c3f85191c sha256: b5d293831e6895ca139d9a0a92eec75a82e73398978b140af8f7c5e91c7c969a